Home Forums WoodMart support forum Add CSS style to product SKU on shop page

Add CSS style to product SKU on shop page

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #307897

    sushama
    Participant

    Want to add styling to product SKU on shop page but can’t select it. On single product page, it has class sku_wrapper but not on product archives.
    Could you please let me know is this achievable?
    Kind regards

    #307950

    Hello,

    Thank you very much for choosing our theme and for contacting us.
    Please add this code to the Theme Settings > Custom CSS > Global:

    body .product_meta .sku_wrapper {
        display: inline-block;
        margin: 0 1px;
        color: red;
        font-weight: 400;
        font-size:30px;
    }

    You can change the style as per your needs.

    If you have any questions please feel free to contact us.

    Best Regards

    #307953

    sushama
    Participant

    Hi,
    I think you misunderstood, it is possible to style SKU on single product pages using
    body .product_meta .sku_wrapper selector.
    I want to style SKU on product archive pages where there is no SKU wrapper.

    Kind regards

    #307974

    Hello,

    Please provide the page URL I will provide custom CSS for the archive page.

    Best Regards

    #308042

    sushama
    Participant

    Hi,
    Here is the URL

    Kind regards

    #308054

    Hello,

    You have customized the grid and inserted the SKU in the price wrapping, I cannot style SKU as the price would change as well.

    Best Regards

    #308058

    sushama
    Participant

    oh sorry for the trouble, did not realise that it’s coming through the custom code
    Thanks for the support, you can close this ticket.
    Kind regards

    #308090

    You are welcome! We are here to help.

    Wish you a wonderful day!

    #357488

    razwan73
    Participant

    Hi,

    What will be the custom code if I want to add SKU before the Title in SHOP page or Category Archive Page?

    Thanks

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

    Hello,

    HTML structure does not allow solving it by custom CSS. Such modification requires complicated Woocommerce code customization which is not covered by our support.

    Best Regards

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