Unverified

Name

Single Product Elementor styling inline 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 inline Radio Variation

 
                    
1/* Hide the select dropdowns for product variations */
2.woocommerce div.product form.cart .variations select {
3display: none;
4}
5 
6/* Container for radio buttons and labels */
7.variation-changes-container {
8display: flex;
9flex-wrap: wrap; /* Allows items to wrap to next line as needed */
10gap: 15px; /* Space between items */
11}
12 
13/* Attribute Title alignemnt*/
14.woocommerce div.product form.cart .variations th {
15text-align: left;
16align-items: center;
17}
18 
19/* Style for labels */
20.variation-changes-container label {
21display: flex;
22align-items: center;
23margin-bottom: 0px; /* Adjust spacing between each option, if necessary */
24text-transform: capitalize; /* Converts text to uppercase */
25}
26 
27/* Style for radio buttons */
28.variation-changes-container input[type=radio] {
29appearance: none;
30margin-right: 7px; /* Space between circle and label text */
31width: 20px; height: 20px;
32border-radius: 50%; /* Circle */
33border: 2px solid #ccc;
34outline: none;
35}
36 
37/* Style for checked radio buttons */
38.variation-changes-container input[type=radio]:checked {
39border-color: #FF0050;
40background-color: #FF0050;
41}
42 
43/* Background color adjustments for add-to-cart and variations */
44.variation-changes-container .elementor-product-variable,
45.woocommerce div.product form.cart .variations th,
46.woocommerce div.product form.cart .variations td {
47background-color: #ffffff; /* Set background to white */
48}

0

Related Snippets

Please see some snippets below related to this snippet..

Elementor

Unverified

0

Single Product Elementor styling Radio Variation

Added: 4 months ago

Last Updated: 4 months ago

Stylise the Single Product Variation Radio Buttons.

Elementor

AI Verified

0

Hide Some Elementor Items on the Wordpress Sidebar

Added: 1 year ago

Last Updated: 1 year ago

If you want to hide some elementor item from the Wordpress Dashboard Sidebar

Elementor

Pro Verified

0

Default Panel Display

Added: 7 months ago

Last Updated: 7 months ago

By default, Elementor displays the widgets panel when the editor is loaded for the first time. You can change this.

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.