Skip to content
Public Ticket #6884

Title for Custom Post Type Archive Pages

Conversation thread

dancedarted Doug replied

Customer Reply

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.

PenciDesign replied

Staff Reply

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 Doug started the conversation

Conversation Start

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!

Want to join this conversation or access attachments? Sign in first.