Tagged: enfold, Product page, shop
How can I change the title on all product pages from the default ‘Shop’ to the product title used for the individual product page? I once had it, but after an update and loss of some CSS that was input cannot figure out how to get this back.
Thanks
Hi InnoMed!
please refer to this post: https://kriesi.at/support/topic/how-to-change-shop-to-store/#post-371293
Regards,
Andy
Hi Andy,
Thanks for the response – I changed the slug of the product page to match title, but this did not work. Can you clarify the process to have the product name as the title rather than “Shop”?
Thanks
Hey!
Do you mind creating a temporary admin login and posting it here privately so we can look into it?
Cheers!
Yigit
Hi!
Add this in the functions.php file:
add_filter( 'avf_title_args', 'avf_product_titlee', 0, 2 );
function avf_product_titlee( $args, $id ) {
if ( is_singular('product') ) { $args['title'] = get_the_title($id); }
return $args;
}
Best regards,
Ismael
Hi Ismael,
How can I make the functions.php file working in the chilc theme? I did place this code in the functions.php of the child team but then the website doen not work anymore.
Please advise.
Thanks,
Willem Eelman
Hi,
@AppelenEelman please start a new thread and attach WordPress admin logins and FTP logins in private content field so we can look into it. Also, please post the exact error you are getting.
Best regards,
Yigit