Tagged: link, portfolio grid, sort
Hi,
I didn’t want to piggyback off of someone’s request but I’m referring to this solution: https://kriesi.at/support/topic/pre-filtered-portfolio-grid/
function select_portfolio_filter(){
?>
<script>
jQuery( window ).load(function() {
jQuery('.page-is-xx .inner_sort_button:eq(1)').click();
jQuery('.page-id-xx .inner_sort_button:eq(1)').click();
});
</script>
<?php
}
add_action('wp_head', 'select_portfolio_filter');
How would I link this on the menu? Would be like something along the lines of http://www.example.com/#1 http://www.examples.com/#2 to have the filters pre-set?
Thanks!
Hey schenkco,
Thank you for using Enfold.
Please refer to these links for a possible solution:
https://kriesi.at/support/topic/different-layout-for-blog-layout-and-certain-category-layout/#post-624419
https://kriesi.at/support/topic/linking-to-filtered-portfolio-ajax/
Best regards,
Ismael
Awesome!! It’s working, thanks so much!