Join the Soledad Facebook Users Group here
for Share, assistance, discussion, and Updates related to Soledad WordPress Theme.

If you can't create a new ticket - you can send us an email via our contact form and we will get back to you.

Okay
  Public Ticket #1892855
Title for Custom Post Type Archive Pages
Closed

Comments

  • dancedarted started the conversation

    Is there a way to change the title of archive pages for different custom types created with Toolset using your Soledad theme?

    The title says: "Archive" and I would like to customize this name to be the same as the custom post type.

    Much thanks!

  •  2,699
    PenciDesign replied

    Hi,

    If you want to do that, you need to edit the file soledad/archive.php from the theme.

    On line 74 - 78, change this code:

    else :
        echo '<h1 class="page-title">';
        echo penci_get_setting( 'penci_trans_archives' );
        echo '</h1>';
    endif;
    

    to something like this:

    else :
        echo '<h1 class="page-title">';
        if( is_tax('tax-slug') ){
            echo 'The name you want to display';
        } else {
            echo penci_get_setting( 'penci_trans_archives' );
        }
        echo '</h1>';
    endif;
    

    Change  'tax-slug' to your custom taxonomy slug and 'The name you want to display' to the title you want.


    Best Regards,

    PenciDesign

  • dancedarted replied

    Thanks. Your recommendation resolved issue.

    I used : is_post_type_archive

    And not: is_tax

    since I wanted to rename archive page and not taxonomy page.