P
P
Phnataly2017-02-14 21:40:29
WooCommerce
Phnataly, 2017-02-14 21:40:29

Appearance of sorting products in category as buttons instead of woocommerce dropdown list?

How to change the appearance of sorting products in a category in the form of buttons
60ec2427527f4a099db0ad098e963604.jpg

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
andre6033, 2020-05-08
@andre6033

In the orderby.php file, you can replace select with links like this

<?php foreach ( $catalog_orderby_options as $id => $name ) : ?>
<a href="?orderby=<?php echo esc_attr( $id );?>" class="orderby-link"><?php echo esc_html( $name )?></a>
<?php endforeach; ?>

W
WP Panda, 2017-02-14
@wppanda5 WooCommerce

Override this template https://github.com/woocommerce/woocommerce/blob/8d...

P
Phnataly, 2017-02-14
@Phnataly

This option did not fit, I found this one: https://gist.github.com/florentsorel/c990f35194c06... It worked
, now only the style needs to be corrected.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question