Off-Canvas Filters not working
-
I just updated from version 5 to version 6.1 and now the off-canvas shop filters don’t work.
I have it set in Theme Settings to use off-canvas filters for tablet and mobile.
However, the ‘Show Filters” button text shows on desktop/tablet/mobile and doesn’t do anything.
Okay it looks like I was using this old function to change the filter button text:
remove_action( 'init', 'woodmart_show_sidebar_btn' );
function woodmart_show_sidebar_btn() {
?>
<div class="woodmart-show-sidebar-btn">
<span class="woodmart-side-bar-icon"></span>
<span><?php esc_html_e('Show Filters', 'woodmart'); ?></span>
</div>
<?php
}
add_action( 'woocommerce_before_shop_loop', 'woodmart_show_sidebar_btn', 25 );
I removed this from my child theme and now the filter button says “Show Sidebar”. How can I change this button text now?
Hello,
Please update the theme till 6.1.2.
You can translate/rewrite all theme and plugin texts via PO file in WordPress. Here is a video tutorial that should help you translate your website texts with a Loco Translate plugin https://www.youtube.com/watch?v=D3NsDdMzsls&list=PLMw6W4rAaOgKKv0oexGHzpWBg1imvrval&index=3
Please check the video tutorial to see how to save the translation file correctly. You can remove the plugin and translations would remain. Also, translations would remain after each theme update.
Best Regards