How to make Woocommerce Attribute Dropdown to Clickable Text?
-
This is the dropdown code for the attribute. I want to make it clickable text.
For the size, you can see the size is clickable text. https://www.urbanoutfitters.com/urban/catalog/productdetail.jsp?id=37083375&category=W-WEATHER
I don’t know how change the code below.
<?php
$selected = isset( $_REQUEST[ ‘attribute_’ . sanitize_title( $attribute_name ) ] ) ? wc_clean( $_REQUEST[ ‘attribute_’ . sanitize_title( $attribute_name ) ] ) : $product->get_variation_default_attribute( $attribute_name );
$attribute_name, ‘product’ => $product, ‘selected’ => $selected ) );?>
- The topic ‘How to make Woocommerce Attribute Dropdown to Clickable Text?’ is closed to new replies.