Unverified

Name

Single Product Elementor styling Radio Variation

About

Stylise the Single Product Variation Radio Buttons.

Language

CSS

Rating

Voted: 0 by 0 user(s)

How to Setup Snippet

Add this code to Code Snippets first; https://www.codesnippets.cloud/snippet/WebSquadron/Woocommerce-Single-Product-Variation-Radio And then add the CSS below to the 'Add to Cart' widget on the Single Product Template

Codevault

WebSquadron

Scroll down to see more snippets from this codevault.

Wordpress Compatability

The author has indicated that this snippet is compatable up to wordpress version: 6.4

Code Snippet Plugin Sync

Free & Pro

Download this snippet by clicking the download button, then head over to the Code Snippet Plugin settings in your wordpress admin dashboard, select the import menu then upload this file to import into your wordpress site.

Pro Only (Coming Soon)

You will be able to click a button and sync this snippet to your wordpress site automatically and from your dashboard manage all code snippets across all your wordpress sites that have the Code Snippets Pro plugin installed.

History

Last modified:

12/03/2024

Important Note

This snippet has the following status:

Unverified

This snippet has not been verified, use with caution and at your own risk. See details provided by author in sidebar and click below to find out more.

Single Product Elementor styling Radio Variation

 
                    
1/* Hide the select dropdowns for product variations */
2.woocommerce div.product form.cart .variations select {
3display: none;
4}
5 
6selector label {
7display: flex;
8align-items: center;
9margin-bottom: 5px; /* Adjust spacing between each option */
10text-transform: capitalize; /* Converts text to uppercase */
11}
12 
13selector input[type=radio] {
14appearance: none;
15margin-right: 10px; /* Space between circle and label text */
16width: 20px; height: 20px;
17border-radius: 50%; /* circle */
18border: 2px solid #ccc;
19outline: none;
20align-self: center; /* Aligns the radio button vertically */
21}
22 
23selector input[type=radio]:checked {
24border-color: #FF0050;
25background-color: #FF0050;
26}
27 
28/* Background color adjustments for add-to-cart and variations */
29selector .elementor-product-variable,
30.woocommerce div.product form.cart .variations th,
31.woocommerce div.product form.cart .variations td {
32background-color: #ffffff; /* Set background to white */
33}
34 
35/* Adjusting label margin in specific Elementor & WooCommerce contexts */
36selector form.cart table.variations label {
37margin-bottom: -20px; /* Adjust based on your layout needs */
38}

0

Related Snippets

Please see some snippets below related to this snippet..

Elementor

AI Verified

0

Elementor Repeater Field Comma Separated

Added: 5 months ago

Last Updated: 5 months ago

Elementor

AI Verified

0

Display ACF repeater field

Added: 1 year ago

Last Updated: 1 year ago

Allows to display Advanced Custom Fields Pro Repeaters whitout a plugin or page builder that allow ACF fields.

Elementor

Unverified

0

Single Product Elementor styling inline Radio Variation

Added: 4 months ago

Last Updated: 4 months ago

Stylise the Single Product Variation Radio Buttons.

Other Snippets in this Codevault

These are some popular snippets from this users codevault..

Performance

AI Verified

32

Remove Unused Javascript

Added: 1 year ago

Last Updated: 3 days ago

Remove Unused Javascript - and improve your Page Speed Insight Score

WooCommerce

Pro Verified

10

Deactivate some WooCommerce Checkout Fields

Added: 1 year ago

Last Updated: 2 weeks ago

Deactivate some WooCommerce Checkout Fields from showing

Elementor

AI Verified

6

CSS Grid Aid

Added: 8 months ago

Last Updated: 1 month ago

This can be used for any WordPress Builder to aid working with CSS Grids.