My website, Product title change to category title for all product!
Please view the Private Content.
ThanksSite URL: hidden Theme version: 3.0 WooCommerce version: 2.5.5
Hello Stan Russell,
When I update from version 1.9.2 to 3.0, I encountered a problem as follows:
The <h1 class = “title”> the product has changed from the product name to display the name of the Category!
Hello Robert Hall,
I think it is not necessary! All versions of the Legenda v3.x 1 errors were the same!
Even in your Demo version: http://8theme.com/demo/legenda/shop/chateau-milan-2006/
If you go back to version v1.9.2, will display the word “SHOP”: Château Milan 2006
How will it show Product Title instead “SHOP”?
Yes, the code was changed in new theme files.
To change it you need edit \wp-content\themes\legenda\framework\theme-functions.php file on line 4761
Find this code
<h1 class="title"><span><?php woocommerce_page_title(); ?></span></h1>
and replace to the following
<h1 class="title"><span><?php echo get_the_title($postspage_id); ?></span></h1>
Hello Robert Hall,
It’s a very good way! It makes Product titile displays correct.
However, it caused a serious error for Category Title. It uses the top Product title for Category title
How in the Product Page – It will display Product title,
And Category Page (eg “SHOP”) – It will display Category title ?
Ok, please try to replace the code above to
<?php if ( is_single() ) : ?> <h1 class="title"><span><?php echo get_the_title($postspage_id); ?></span></h1> <?php else : ?> <h1 class="title"><span><?php woocommerce_page_title(); ?></span></h1> <?php endif; ?>
It should be like at screenshot: https://gyazo.com/06941e9987ffcd8cd1485d20f38ec1e6
You must be logged in to reply to this topic.Log in/Sign up
One standard license is valid only for 1 project. Running multiple projects on a single license is a copyright violation.
The message was successfully sent
Your shopping cart is empty