• Resolved stevesand

    (@stevesand)


    Hi.

    In file: class-pwb-product-tab.php
    Line:
    $content = apply_filters( ‘the_content’, $brand->description );

    The filter “the_content” is causing the brand to show the product description instead of the brand description. Not sure if it is a new bug or caused by conflicting plugins.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author quadlayers

    (@quadlayers)

    Hello @stevesand
    Can you please share screenshots
    Please also deactivate all plugins and check if the issue persists
    Then activate one by one to detect what is the plugin causing the issue

    Thread Starter stevesand

    (@stevesand)

    Hi, we updated the plugin yesterday and the bug came back. We manually fixed it before but it was overwritten by the update.

    It is a conflict with Elementor. “The_content” is overridden when using Elementor for product descriptions.

    The filter “the_content” fills no purpose where it is placed in PWB at the moment and it leads to problems since it is scope dependent and has conflicts when used with other plugins. “The_content” is used for “read more text” for blog posts which is not supported by PWB anyway so why not just remove it?

    We have changed the file, class-pwb-product-tab.php:
    $content = the_content($brand->description);
    $content = $brand->description;

    More info here:
    https://developer.www.ads-software.com/reference/functions/the_content/

    Thank you for a great plugin.

    • This reply was modified 2 years, 4 months ago by stevesand.
    Plugin Author quadlayers

    (@quadlayers)

    Thanks mate, we will remove the filter on the next update

    Thread Starter stevesand

    (@stevesand)

    Thank you, love the plugin and your quick support.

    Plugin Author quadlayers

    (@quadlayers)

    You’re welcome!
    We will really appreciate your review here
    https://www.ads-software.com/support/plugin/perfect-woocommerce-brands/reviews/
    Best regards

    piersert

    (@piersert)

    Hi,

    We are facing the same problem again.

    Please let us knwow how to fix it

    Kind regards

    Hi, @piersert

    In file: class-woocommerce.php
    Line:
    echo do_shortcode( apply_filters( ‘the_content’, $queried_object->description ) );

    The filter “the_content” is causing the brand to show the product description instead of the brand description. 

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Brand is showing product description’ is closed to new replies.