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

Topic Resolution: Resolved
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #61129
    Caetlyn
    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
    Caetlyn
    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
    Caetlyn
    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)
  • The forum ‘ Weaver and Plugin Interaction’ is closed to new topics and replies.