Home Forums Weaver and Plugin Interaction Woocommerce Product name missing on single product pages

Topic Resolution: Resolved

This topic contains 4 replies, has 2 voices, and was last updated by  Weaver 3 months, 2 weeks ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #61129

    ChaosFyre
    Participant

    I’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?

    #61134

    Weaver
    Keymaster

    You 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.

    #61156

    ChaosFyre
    Participant

    I 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.

    #61157

    ChaosFyre
    Participant

    It 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 is
    if ( class_exists( ‘WooCommerce’ ) ) {
    require_once( ‘woocommerce_support.php’ );
    }
    #61166

    Weaver
    Keymaster

    If 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.

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.