Styling Customizations for Product Page Elements (Button, Swatches, Price, and Reviews)

This topic has 6 replies, 2 voices, and was last updated 2 months, 1 weeks ago ago by Luca Rossi

  • Avatar: khurram virk
    khurram virk
    Participant
    August 7, 2025 at 15:18

    Dear Sir,

    Good day to you.

    I am currently using the “Add to Cart / Buy Now” button element provided by XStore, and I would like to customize its appearance. Specifically, I want to change the following button styles:

    Button text size
    Border radius
    Hover color
    Text transformation to Capitalize

    📸 Screenshot of the element: https://snipboard.io/eOPWz2.jpg
    📍 Page Link: https://skysolmedia.com/product/wordpress-development/

    Additionally, I need help with the following issues:

    Unnecessary spacing between the swatches and the price – I would like to reduce this spacing.
    📸 Screenshot: https://snipboard.io/f0p54N.jpg

    Adjust font size of the price for the selected swatch.
    📸 Screenshot: https://snipboard.io/k7HNsY.jpg

    Change color of highlighted items in the shope page: https://skysolmedia.com/shop/
    📸 Screenshot: https://snipboard.io/jk0i7q.jpg

    Change the color of highlighted elements in the review section on the product page.
    📸 Screenshot: https://snipboard.io/pH9ZV5.jpg

    Could you please provide the necessary CSS or customization guidance to achieve these changes?

    Looking forward to your support.

    Thank you.

    5 Answers
    Avatar: Justin
    Luca Rossi
    Support staff
    August 7, 2025 at 17:51

    Hi @khurram virk,

    Please try adding this custom CSS under XStore > Theme Options > Theme Custom CSS > Global CSS:

    
    .single-product ul.st-swatch-size-large li.type-label {
        border-radius: 8px;
        margin-bottom: 0 !important;
    }
    .single-product ul.st-swatch-size-large li.type-label span {
        text-transform: capitalize;
    }
    
    .single-product ul.st-swatch-preview-single-product.st-swatch-shape-square {
        margin-bottom: 0;
    }
    
    .single-product li.type-label.subtype-square.selected,
    .single-product ul.st-swatch-size-large li.type-label:hover {
        background-color: #7C3AED !important;
        border-color: #7C3AED !important;
        color: #fff;
    }
    
    .single-product table.variations {
        margin-bottom: 0;
    }
    
    .single-product .single_variation_wrap .price {
        font-size: 20px;
    }
    
    body .star-rating, 
    body #review_form .stars {
        --et_yellow-color: #7C3AED;
    }
    

    Kind regards,
    The 8Theme Team

    Avatar: khurram virk
    khurram virk
    Participant
    August 9, 2025 at 14:55

    Dear Sir,

    Good day to you.

    Thank you for the provided CSS, it worked well.

    I now have two additional customization requests:

    Increase the size of swatch buttons on the product page.
    📸 Screenshot: https://snipboard.io/9zqtBc.jpg

    Change the color of the social link button displayed on the shop page.
    📸 Screenshot: https://snipboard.io/heKFv6.jpg

    Could you please share the CSS code to achieve these adjustments?

    Thank you for your continued support.

    Avatar: Justin
    Luca Rossi
    Support staff
    August 11, 2025 at 05:13

    Dear @Khurram Virk,

    We hope this message finds you well.

    Kindly add the following custom CSS code to your project:

    
    .single-product ul.st-swatch-size-large li.type-label > span {
        padding: 12px 24px;
    }
    

    Additionally, please note that the color of the social icons can be modified through the “Style” tab of the social element.

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

    Best regards,
    The 8Theme Team

    Avatar: khurram virk
    khurram virk
    Participant
    September 24, 2025 at 13:55

    Dear Sir,

    Good day to you.

    Thank you for your support.

    I have one more request regarding the social links icons. I would like to change their color to blue on the shop page.

    📍 Page link: https://skysolmedia.com/shop/

    📸 Screenshot: https://snipboard.io/85hzW3.jpg

    Could you please guide me on how to apply this color change through CSS or theme settings?

    Thank you.

    Avatar: Justin
    Luca Rossi
    Support staff
    September 24, 2025 at 14:15

    Hi @khurram virk

    Please try adding this custom CSS under XStore > Theme Options > Theme Custom CSS > Global CSS:

    
    body .et-follow-buttons i {
        color: #1e3ddc;
    }
    

    Kind regards,
    The 8Theme Team

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

You must be logged in to reply to this topic.Log in/Sign up

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