Skip to content

Commit

Permalink
Adding classes for inline radio buttons (#27)
Browse files Browse the repository at this point in the history
* Adding classes for inline radio buttons

I added new classes, to be able to style each attribute, and make some radio buttons inline.

Thank you.

* Update variable.php
  • Loading branch information
nicomollet authored and Mantish committed Nov 5, 2017
1 parent 7ff7872 commit 4a29389
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/single-product/add-to-cart/variable.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function print_attribute_radio( $checked_value, $value, $label, $name ) {
<table class="variations" cellspacing="0">
<tbody>
<?php foreach ( $attributes as $name => $options ) : ?>
<tr>
<tr class="attribute-<?php echo sanitize_title($name); ?>">
<td class="label"><label for="<?php echo sanitize_title( $name ); ?>"><?php echo wc_attribute_label( $name ); ?></label></td>
<?php
$sanitized_name = sanitize_title( $name );
Expand Down

0 comments on commit 4a29389

Please sign in to comment.