The "Compare" button appears in the RELATED PRODUCTS category

This topic has 3 replies, 2 voices, and was last updated 5 years, 6 months ago ago by yaronb

  • Avatar: yaronb
    yaronb
    Participant
    May 26, 2020 at 11:46

    Hi there

    For some reason the “Compare” button started appearing on the site in the “RELATED PRODUCTS” area.

    After adding a “comparison” option on a product page itself:
    https://prnt.sc/so01n7

    In general, I have in CSS the code you gave me in the past to hide this option on the home page: https://prnt.sc/so00ix

    How to leave the “comparison” option active on a product page,
    But it will not appear in this area: https://prnt.sc/so0338

    Thank you

    Yaron

    Please, contact administrator
    for this information.
    2 Answers
    Avatar: Olga Barlow
    Olga Barlow
    Participant
    May 26, 2020 at 18:40

    Hello,

    Replace that code by the below code

    .product-details .add_to_cart_button~.compare.button {
        display: none;
    }

    Regards

    Avatar: yaronb
    yaronb
    Participant
    May 27, 2020 at 14:16

    Excellent
    Thank you very much

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

The issue related to '‘The "Compare" button appears in the RELATED PRODUCTS category’' has been successfully resolved, and the topic is now closed for further responses

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