Hello,
I’m encountering an issue with changing the title of the Shop page on my site. The Shop page does not appear in the Pages section of the WordPress dashboard, which is preventing me from editing it directly.
I’ve tried using the following code snippets in the functions.php file to change the Shop page title, but neither of them have worked:/**
* Filter to Change WooCommerce Page Title.
*/
add_filter( ‘woocommerce_page_title’, ‘new_woocommerce_page_title’ );
function new_woocommerce_page_title( $page_title ) {
if ( $page_title == ‘Shop’ ) {
return ‘New Shop Title’; // Add your title here.
}
}
Second Code Snippet:add_filter( ‘woocommerce_page_title’, ‘woo_shop_page_title’);
function woo_shop_page_title( $page_title ) {
if ( ‘Shop’ == $page_title ) {
return “Your Replacement Title Here”;
}
}
Attachments:
You must be
logged in to view attached files.