Product Page badge size and display issues

This topic has 20 replies, 3 voices, and was last updated 2 months, 3 weeks ago ago by kmc

  • Avatar: kmc
    kmc
    Participant
    July 19, 2025 at 15:50

    A few issues for the product badges

    1. the size on the product page should be propotional to the ones display on the archive page / categories page, currently it is too small, how can I make it larger and more responsive?

    2. the position of the badge on product page also not correct(not on top), how to adjust?

    3. for the product link I provided, it says up to 25% but actuall all the variations in the link is 25%, shouldn’t it display just 25%?

    Please, contact administrator
    for this information.
    19 Answers
    Avatar: Alex Carter
    Alex Carter
    Support staff
    July 19, 2025 at 17:01

    Hello,

    Thank you for reaching out to us.

    1/ XStore Builders > Single Product Builder > edit template > edit width of sections

    2/ Here is what we see on a single product page right now – https://prnt.sc/8T5OrjGFPmAX
    Kindly describe your desired result in more detail so we can better assist you.

    3/ Regarding the display of percentage discounts for variable products:
    This is how the discount appears when a product has variations, as each variation may have a different price.
    To disable this feature, please go to:
    Theme Options > WooCommerce > Shop Elements > Product Badges > Percentage for Variable Products > Set to “Off”.

    Should you have any further questions or require additional assistance, please do not hesitate to contact us.

    Warm Regards,
    The 8Theme Team

    Avatar: kmc
    kmc
    Participant
    July 19, 2025 at 17:57

    See attached picture, the sales badge on the image on single product page (the URL I attached) should look like this

    Please contact administrator
    for this information.
    Files is visible for topic creator and
    support staff only.
    Avatar: Alex Carter
    Alex Carter
    Support staff
    July 21, 2025 at 07:24

    Hello,

    Custom CSS code can be used:

    .single-product .onsale {
        font-size: 20px;
    }

    https://www.8theme.com/documentation/xstore/additional-customisation/optimal-placement-for-custom-css-code/

    Warm Regards,
    The 8Theme Team

    Avatar: kmc
    kmc
    Participant
    July 21, 2025 at 11:42

    Thanks, we have applied this however the postion of the badge is not right (now on top of the product image)

    Avatar: Alex Carter
    Alex Carter
    Support staff
    July 21, 2025 at 12:57

    Hello,

    We appreciate your prompt response.

    Please change the code to:

    .single-product .onsale {
        font-size: 20px;
        top: 30px !important;
    }

    Warm Regards,
    The 8Theme Team

    Avatar: kmc
    kmc
    Participant
    August 4, 2025 at 17:32

    Thanks, however now the “new” badge is not displaying on the product page

    Please contact administrator
    for this information.
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    August 5, 2025 at 07:35

    Hello @kmc,

    Thank you for reaching out.

    Please note that the “new” label is not configured by default to appear on the single product page. If you would like to request this feature, we kindly encourage you to submit your suggestion on our Feature Requests Taskboard. This allows us to evaluate the popularity of the request and consider it for future updates:

    https://www.8theme.com/roadmap/

    Best regards,
    Jack Richardson
    The 8Theme Team

    Avatar: kmc
    kmc
    Participant
    August 6, 2025 at 12:07

    I see, I just got another issue

    See screenshot, the add to cart button is shorter than the buy now button but I dont find anywhere to fix this

    Please contact administrator
    for this information.
    Files is visible for topic creator and
    support staff only.
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    August 6, 2025 at 12:44

    Hello @kmc,

    We hope this message finds you well.

    Kindly add the following custom CSS to your Theme Options under Theme Custom CSS:

    body .single_add_to_cart_button.button:has(+input[name=gtm4wp_product_data]) {
        margin-right: 0;
    }

    This adjustment addresses the extra spacing that appears next to the button, which is caused by a custom input field with the name “gtm4wp_product_data”.

    Should you have any further questions or require assistance, please do not hesitate to reach out.

    Best regards,
    The 8Theme Team

    Avatar: kmc
    kmc
    Participant
    August 13, 2025 at 15:17

    For the sales badge, after I applied the css, the product slider at the bottoms is displaying wrong sizes.

    .single-product .onsale {
    font-size: 20px;
    top: 30px !important;
    }

    Files is visible for topic creator and
    support staff only.
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    August 13, 2025 at 18:49

    Hello @kmc,

    Thank you for reaching out.

    Could you please provide us with the URL of the page in question? Additionally, we would appreciate it if you could clarify the desired outcome you are aiming to achieve.

    Please note that since you are applying custom CSS globally and across different sections—such as a 6-column product carousel or a 2-column product grid—the size of the sale badge appears consistent across all layouts. If you require a different appearance on a specific page, we recommend applying custom CSS that targets the specific page ID. For your reference, please see the following screenshot: https://prnt.sc/t22i5NjJOkFK

    We look forward to your response.

    Best regards,
    Jack Richardson
    The 8Theme Team

    Avatar: kmc
    kmc
    Participant
    August 15, 2025 at 19:52

    the product slider’s badge should look like this proportion, basically the badge size should scale according to the image size, and propotional.

    Files is visible for topic creator and
    support staff only.
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    August 17, 2025 at 19:32

    Hello @kmc,

    We hope this message finds you well.

    We have noticed that the following custom CSS has been added under WP Code snippets (https://gyazo.com/139b4c0db26f5de8662ef947565da7ed):

    .single-product .onsale {
        font-size: 18px;
        top: 50px !important;
    }

    Please note that this code applies the specified styles to all .onsale badges displayed across all sections of the single product page.

    If your intention is to apply these changes exclusively to the sale badge within the product gallery on the single product page, we recommend updating the code as follows:

    .images-wrapper .onsale {
        font-size: 18px;
        top: 50px !important;
    }

    This adjustment will ensure that the styling is limited to the desired section.

    Best regards,
    Jack Richardson
    The 8Theme Team

    Avatar: kmc
    kmc
    Participant
    September 7, 2025 at 08:16

    After applying below code, the “buy now” button become shorter.

    body .single_add_to_cart_button.button:has(+input[name=gtm4wp_product_data]) {
    margin-right: 0;
    }

    Please contact administrator
    for this information.
    Files is visible for topic creator and
    support staff only.
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    September 7, 2025 at 17:21

    Hello @kmc,

    We hope this message finds you well.

    Kindly consider enhancing the code by including the following snippet as well:

    body input[name="gtm4wp_product_data"] ~ .single_add_to_cart_button.button {
        margin-right: 0;
    }

    Thank you for your attention to this matter.

    Best regards,
    The 8Theme Team

    Avatar: kmc
    kmc
    Participant
    September 9, 2025 at 03:31

    May I know how to
    1) make the space between the add to card and buy now button larger?
    2) make the space below the buy now button disapear

    I didn’t find any option to do it.

    Files is visible for topic creator and
    support staff only.
    Avatar: Alex Carter
    Alex Carter
    Support staff
    September 9, 2025 at 08:17

    Hello,

    Thank you for reaching out to us.

    Custom CSS can be used:

    .single-product div.quantity~.single_add_to_cart_button {
        margin-bottom: 20px !important;
    }
    .single-product button.et-single-buy-now.single_add_to_cart_button.button.alt {
         margin-bottom: 0px !important;
    }

    Warm Regards,
    The 8Theme Team

    Avatar: kmc
    kmc
    Participant
    September 11, 2025 at 06:43

    All good, thanks!

    Avatar: kmc
    kmc
    Participant
    September 11, 2025 at 06:43

    Thanks for the support! My topic “Product Page badge size and display issues” has been successfully resolved.

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

The issue related to '‘Product Page badge size and display issues’' 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.