Home › Forums › Weaver and Plugin Interaction › Woocommerce Product name missing on single product pages
- This topic has 4 replies, 2 voices, and was last updated 4 years, 2 months ago by
Weaver.
-
AuthorPosts
-
July 25, 2019 at 12:42 UTC - Views: 22 #61129
Caetlyn
ParticipantI’m hoping someone here can help me with this issue. Put simply, up until today, the product names no longer show up on my shop’s single product page and I’m not quite sure what is causing it.
At first, I thought it might have been a plugin issue but, after switching to one of the Woocommerce themes, I realised it was more theme related. I’d stay with the Woocommerce theme but Weaver Xtreme suits my design options quite nicely.
Here is an example of a single product page as it stands – https://shop.caetlynmclean.com/product/along-the-torrens-river/
Can anyone help me?
July 25, 2019 at 14:59 UTC - Views: 23 #61134Weaver
KeymasterYou have added a custom CSS rule:
.woocommerce-page .page-title {
display: none;
}If you examine the HTML page source, you can see the title is actually there as:
“Along the Torrens River” – 12×16 Landscape Painting
but your rule is hiding it.
July 25, 2019 at 20:55 UTC - Views: 21 #61156Caetlyn
ParticipantI realise that. However, deleting that part of the code does not achieve the result I want. I added the code there because I didn’t want the page title appearing on the shop’s front page.
My understanding is that the product title should appear directly above the price rather than above the product image. In fact, the coding for the single product page specifies it is the “product title” not the “page title” which is what I want appearing on the page.
the_title( ‘<h1 class=”product_title entry-title”>’, ‘</h1>’ );
Any other thoughts would be greatly appreciated.
July 25, 2019 at 21:16 UTC - Views: 37 #61157Caetlyn
ParticipantIt appears there was something within the functions.php file that I had changed but forgot about.
For some reason, adding the following code resolves the issue …
// Checking if WooCommerce is active, load support if it isif ( class_exists( ‘WooCommerce’ ) ) {require_once( ‘woocommerce_support.php’ );}July 27, 2019 at 20:28 UTC - Views: 8 #61166Weaver
KeymasterIf you are tweaking funcitons.php, then you should absolutely do that ONLY in a child theme! Otherwise, every time you update the theme, your changes will be wiped out.
-
AuthorPosts
- The forum ‘ Weaver and Plugin Interaction’ is closed to new topics and replies.