Home Forums WoodMart – Premium Template hide star rating based on Attribute swatches

hide star rating based on Attribute swatches

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #378732

    ninja
    Participant

    Hi
    can you help me about this:(please see attachment)
    i need to show star rating OR Attribute swatches , not BOTH of them at once.
    thanks

    Attachments:
    You must be logged in to view attached files.
    #378785

    Luke Nielsen
    Keymaster

    Hello,

    With the help of the below code, you can hide the star rating, while the color swatches remain.

    .product-grid-item .wd-star-rating {
        display: none;
    }

    If there’s anything else we can do, please get in touch.

    Kind Regards

    #378807

    ninja
    Participant

    well , the code will hide all the star rating for whole product while i need to hide stars just when there is no color swatches available for each product
    the css should work like a switch between stars and swatches,possible?

    #378959

    Luke Nielsen
    Keymaster

    Hello,

    The below code will hide the star rating for the products that don’t have color swatches. Enter it into the “Global Custom CSS” area.

    .product-grid-item.product-type-simple .wd-star-rating {
        display: none;
    }

    As for the “switch”, that is impossible.

    Keep me informed of any issues.

    Kind Regards

    • This reply was modified 1 month, 1 week ago by Luke Nielsen.
    #378975

    ninja
    Participant

    Great !
    thanks 🙂

    #379010

    Luke Nielsen
    Keymaster

    Hello,

    Glad that everything is sorted out!

    Always remember that you can reach out to us with any questions you may have.

    We wish you a splendid day!

    Kind Regards

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

The topic ‘hide star rating based on Attribute swatches’ is closed to new replies.