Remove "Select" from Product Variant Dropdown in Squarespace

Do you have variable products in your Squarespace store but don’t want the dropdowns to have the word “Select” in them? Here’s how to remove it.


Before

Squarespace Variable Dropdown with Select.JPG

After

Squarespace Variable Dropdown Without Select.JPG

The JavaScript

Copy and paste the following code into your shop’s header. Go to the PAGES menu. Hover over your shop page on the left and click the GEAR icon that comes up. Click on ADVANCED PAGE HEADER CODE INJECTION and paste the code there.

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script> <script> $(window).on('load', function() { $("select").each(function() { var variabletext = $(this).attr("aria-label"); variabletext = variabletext.replace("Select ", ""); $(this).attr("aria-label",variabletext); $(this).find("option:first-child").val(variabletext); $(this).parent().attr("data-text",variabletext); }) }); </script>
Vigasan

Hey! I’m Vigasan and I love the Internet. I have a Bachelor of Science in Computing Systems with a double specialization in Computer Science and Software Engineering. I’ve been creating websites and working with social media since 2014 and have created over 200 Squarespace websites so far.

https://www.adlyticmarketing.com/
Previous
Previous

Add Text to the Shopping Cart Page in Squarespace

Next
Next

Make Your Announcement Bar Scroll (Marquee) in Squarespace