Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1369863
    VeronicaD
    Participant

    Hi,

    I am creating deep links to grid filters. I have followed these instructions
    https://www.themepunch.com/faq/deep-linking-grid-filters/

    The deep links are working great, except for…
    The links will be accessible from the website top menu.

    See http://bransten.dilsweb.com/
    WordPress 4.7.2
    Theme X 4.6.4
    Cornerstone 1.3.3

    Under Gallery, there is a link for Exterior and Interior.
    The first link will work great, but then if you go to the next one from the top menu then it gets stuck.
    For example from the top menu, if I go to Gallery > Exterior, then it loads properly. From there then go to Gallery > Interior, then the url changes but the deep link does not work (i.e the Interior photos are not appearing).

    Is there a way to clear this so that the page will reload with the new deep link? I am hoping this is possible.

    Thanks for your help!

    #1370152
    Paul R
    Moderator

    Hi,

    You can add this under Custom > Edit Global Javascript in the Customizer.

    
    jQuery( document ).ready(function($) {
    $('.menu-item-371').on('click',function(){
         $('.esg-filterbutton[data-fid="exteriors"]').click();
    });
    	
    $('.menu-item-372').on('click',function(){
        $('.esg-filterbutton[data-fid="interiors"]').click();
    });
    });
    

    Hope that helps.

    #1375821
    VeronicaD
    Participant

    Yes, it worked! Thanks!

    #1375945
    Prasant Rai
    Moderator

    You are most welcome. 🙂

  • <script> jQuery(function($){ $("#no-reply-1369863 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>