How to change portfolio archive title in Hestia

By default, the title of the portfolio archive page is "Projets". However, you can change it according to your requirements. Please create a child theme and add the following code in functions.php file inside your child theme folder. (In this code, change where it says Albums to any text that you wish)

function portfolio_titlechange( $title ) {
   if ( is_post_type_archive( 'jetpack-portfolio' ) ){
        $title = 'Albums';
    }
    return $title;
}
add_filter( 'get_the_archive_title', 'portfolio_titlechange', 11 );

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.