...

Turn the WooCommerce product variations drop-down menu into radio buttons.

Table of contents

Picture of Simeon Nenov

Simeon Nenov

Owner of Simplfix Studio
Simeon has been helping businesses increase their brand awareness through digital solutions for many years.

Turning the drop-down menu of the product variations into radio buttons is easy!

First, make sure you can add custom code.

There are a few ways you can add custom code to your website:

  • Via a third-party plugin like Code Snippets or Custom HTML, CSS & JS
  • Using your theme or builder (if it allows it)
  • Creating a new file in the website directory (for advanced developers)

I like to use Elementor’s built-in functionality for adding custom code.

Add the code

Make sure that you include the <script> tags.

Screenshots

Before

After

Style with CSS

If you want to make your site unique or show your client you go above and beyond, you can style it using some custom CSS like adding a background, some padding, changing the direction to a row, etc.

Conclusion

Changing the default drop-down menu of the product variations in WooCommerce isn’t complicated. Just add a simple code snippet and you are ready to go!

Thanks for reading!
Simeon

Social Media
Brand Identity
Web Design
Print Design
Look at you! You look beautiful today!
Seraphinite AcceleratorOptimized by Seraphinite Accelerator
Turns on site high speed to be attractive for people and search engines.