Skip to content

willbroderick/clickyboxes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Clickyboxes

Turn ordinary dropdowns into chunky boxes in a Shopify theme

Example

To get this working on a shop:

  1. Upload jquery.clickboxes.js and add a script tag linking to it, or add the contents into the main JS file.
  2. Do the same with the CSS file. Adding it to the bottom of styles.css.liquid will be simplest.
  3. Add the script below to product.liquid, at the bottom, just before the </body> tag

<script> $(function($){ $('.selector-wrapper select').clickyBoxes(); }); </script>


FYI, for our Symmetry theme you'll have to skip (3) and add this line of code:

$('.selector-wrapper select').clickyBoxes();

To main.js.liquid, just after Shopify.OptionSelectors (which is around line 606). So on the line underneath:

new Shopify.OptionSelectors($(this).attr('id'), ...

About

Turn dropdowns into chunky boxes in a Shopify theme

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published