Is it possible to hide the Tab All from Accordion in case you using tags to filter the content? The default would then be the first one in the list. Also is it possible to set the order of the Tabs instead of Alphabetical Order?
Thanks
Hi bemofunny!
Thank you for using Enfold.
You can add this on Quick CSS or custom.css to remove the “All” sort:
.taglist a:first-child, .taglist a:first-child + span.tag-seperator {
display: none;
}
Unfortunately, it’s not possible to change the order of the tabs.
Cheers!
Ismael
Thank you! thank you! How do I make the next tab to be in selected mode since the All is hidden?
Hi Ismael,
Apparently, hiding All only hide the text but the All content tab still selected. How to make it so that tab right after All should be selected instead?
Thanks,
– CJ
Hi,
Try adding this at the very end of your theme / child theme functions.php file:
function add_custom_script(){
?>
<script>
(function($){
$(window).load(function() {
$('.togglecontainer .taglist a:nth-of-type(2)').trigger('click')
});
})(jQuery);
</script>
<?php
}
add_action('wp_footer', 'add_custom_script');
Regards,
Josue