How to change portfolio archive title in Zelle

f you're using a child theme then in your functions.php file inside your child theme add the following (change where it says My Portfolio to any text that you wish:

function zerif_remove_portfolio_default_archive_title(){
if ( is_post_type_archive( array('jetpack-portfolio', 'portofolio') ) ){
remove_action( 'zerif_page_header_title_archive', 'zerif_page_header_title_archive_function' );
}
}
add_action( 'wp', 'zerif_remove_portfolio_default_archive_title' );

function zerif_add_new_portfolio_archive_title(){
if ( is_post_type_archive( array('jetpack-portfolio', 'portofolio') ) ){
echo '<h1 class="page-title">My Portfolio</h1>';
}
}
add_action( 'zerif_page_header_title_archive', 'zerif_add_new_portfolio_archive_title', 11 );

If you're not using a child theme then you can quickly create a little plugin using this plugin:  https://wordpress.org/plugins/pluginception/ All you need to add is the plugin name and then copy the code above and enter it into the editing area, after pasting the code save your changes and head over to your Plugins area and activate the plugin to see the changes.

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

Still need help? Contact Us Contact Us