• Resolved Ralf

    (@stepanyanr)


    Hello, This is a great plugin! So basically the issue I am running into is that the labels will not show on the single product page unless they are set to display on the “image” if I display them before title or after title then they will not appear in the product page. So currently I have 2 labels running, one is “SALE” & the other is “FREE SHIPPING”. I need to display this both in the catalog and on single product pages. The only way I am currently able to do this is if I have them displaying on the image itself, which works “okay”. The other thing is they don’t seem to scale on the single Product page. Is there anything that I am missing?

    The page I need help with: [log in to see the link]

Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Author ILLID

    (@mihail-barinov)

    Hi,

    Please tell me – what WordPress theme you are currently using? Also – are you using any page builder plugins to customize the product page?

    Regards

    Thread Starter Ralf

    (@stepanyanr)

    I use the Flatsome Theme and UX blocks to build pages, but I do have custom css trying to force my product cards to equalize in the catalog.

    Plugin Author ILLID

    (@mihail-barinov)

    Please try the following – open UX blocks editor and edit single product page template. Before Product Title block add a new Text block with the following value:

    [awl_get_product_labels position="before_title"]

    This must solve your problem add display the labels with Before Title position.

    Thread Starter Ralf

    (@stepanyanr)

    Perfect thank you for HTML, anyway to make it bigger when it’s on the single product page? Is there anyway to have my Sale tag be on the top left of the product card instead of the product image when it’s displaying?

    Thanks again!

    Plugin Author ILLID

    (@mihail-barinov)

    To change the position of the image label you can add the following shortcode right before?Image?block inside Flatsome UX Builder:

    [awl_get_product_labels position="on_image"]

    About making label bigger for single product page – please try following custom css:

    .single-product .row.has-block .awl-product-label {
        font-size: 17px !important;
    }
    Thread Starter Ralf

    (@stepanyanr)

    Where am I applying “.single-product .row.has-block .awl-product-label { font-size: 17px !important; }”

    also for the Sale label is there a way to put it on the product card/background instead of on the product image, I am trying to have it basically on the top left of the card when viewed in catalog mode, but I guess if I did that it wouldn’t show up on the single product page.

    Plugin Author ILLID

    (@mihail-barinov)

    The best way for adding this custom css – by opening Appearance -> Customize -> Additional CSS and adding needed CSS code inside the option field.

    About label position changing – to can try to play with Hooks option from the plugin settings page. With this option you can change default hooks that are used to display product labels and, as I result, the position of labels.

    Thread Starter Ralf

    (@stepanyanr)

    Hmm, I had put it in additional CSS and didn’t notice any changes even with 25px on incognito mode. I really appreciate all your help!

    Plugin Author ILLID

    (@mihail-barinov)

    So to make things clear – you want to make bigger only On Image labels and only for the main product inside the product single page. Is that correct?

    Thread Starter Ralf

    (@stepanyanr)

    I only want to make “FREE SHIPPING” bigger on the single product page. sorry for the confusion.

    Plugin Author ILLID

    (@mihail-barinov)

    Thanks for your explanation. Please add this additional css:

    .single-product .product-price-container + .advanced-woo-labels .awl-product-label {
        font-size: 17px !important;
    }
    Thread Starter Ralf

    (@stepanyanr)

    Hmm doesn’t seem to do anything, the advanced woolabels is in an html block of its own, but I see the code saying product price container? maybe that’s issue? idk anything about coding so.

    Plugin Author ILLID

    (@mihail-barinov)

    Such css selector with product price container is needed to make changes only for label of main product and doesn’t change any others.

    I see that your custom css section contains following styles:

    .product-small > .box-image {  height: 130px !important;  aspect-ratio: 1/1 !important;;}
    }
    
    .single-product .product-price-container + .advanced-woo-labels .awl-product-label {
        font-size: 30px !important;
    }

    First css contains some mistakes. Please change it to

    .product-small > .box-image {  
        height: 130px !important;  
        aspect-ratio: 1/1 !important;
    }
    
    .single-product .product-price-container + .advanced-woo-labels .awl-product-label {
        font-size: 30px !important;
    }
    Thread Starter Ralf

    (@stepanyanr)

    Perfect thanks again! I should be all set.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Showing Labels on Single Product Page’ is closed to new replies.