Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #646437

    Please see site http://www.britishartportfolio.co.uk/contemporary-art/ if you click onto Anna Bianchi thumbnail you will a number of pictures of this artist. We have used the portfolio grid to display these images. Against each image is a portfolio category we define the Artist : Anna Bianchi and below the artist a sub category of SOLD or AVAILABLE WORKS and this works fine. However the only issue is that when you click onto the portfolio pages of images the sort selection is defaulting to “ALL”. The client wants this to defult to AVAILABLE WOKS can you please help

    Peter

    #646628

    Hey condonpb,

    Please try adding this at the very end of your themes / child themes functions.php file:

    The below code will always trigger Available work.

    function select_portfolio_filter(){
    ?>
    <script>
    jQuery( window ).load(function() {
      jQuery('.inner_sort_button:eq(1)').click();
    });
    </script>
    <?php
    }
    add_action('wp_head', 'select_portfolio_filter');

    Best regards,
    Vinay

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.