Attributes page - by poissonplume - on WordPress WooCommerce support

This topic has 4 replies, 2 voices, and was last updated 7 years ago ago by Rose Tyler

  • Avatar: poissonplume
    poissonplume
    Participant
    April 6, 2017 at 09:29

    Hello,
    In version 3.1, as I display the products per attribute (using a direct url, not using the filters), the page title is the title of the first product in the page (and no longer the name of the attribute).
    This was working well in version 3.0.
    Can you please check?
    Thanks in advance !

    Please, contact administrator
    for this information.
    3 Answers
    Avatar: poissonplume
    poissonplume
    Participant
    April 7, 2017 at 21:50

    Can you please have a look at this isssue quickly?
    Most of my SEO is based on that feature. This bug is therefore really bad for me.
    By the way, I am sure the bug is dépendant on your theme. I désactivâtes my child theme and activated the Lège,da theme, and I reproduced it directly.
    Thanks in advance for your quick reply.

    Avatar: poissonplume
    poissonplume
    Participant
    April 9, 2017 at 20:38

    Hello,
    I think I finally understood what created the issue.
    It is located in theme-functions.php, line 4788.

    <?php if ( is_shop() || is_product_category() || is_product_tag() || taxonomy_exists( 'brand' ) && is_tax( 'brand' ) ): ?>
    <h1 class="title"><span<?php echo $bk_color; ?>><?php woocommerce_page_title(); ?></span></h1>

    If you change the condition as follows :

    <?php if ( is_shop() || is_product_category() || is_product_tag() || is_tax() ): ?>

    then it corrects the bug.

    Was there any good reason to limit the wooocommerce_page_title() function to the brand taxonomy only?
    If not, can you please change that in the next code release?

    Thanks in advance !

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    April 11, 2017 at 12:06

    Hello,

    I sent your report to our developers.
    Thank you for the notice.

    Regards,
    Rose Tyler.

  • Viewing 4 results - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.