Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #727473

    Hi

    I am implementing a Masonry which should display all portfolio categories with filter. For some reason there is one that does not show up in the filter “Capital Markets” …

    The interesting thing is, that it does show up in the portfolio grid (my client wants a load more button) and that is why I started testing the Masonry option.

    I’ve done the following:

    // Updated to the latest theme release
    // WordPress is on the latest install
    // deactivated all plugins
    // removed all custom coding (CSS & a snipet which you guys gave me earlier in the functions.php)

    And it is still doing it… it is selected in the ALB Masonry options… all 3 categories are selected.
    Would appreciate your help, as I am a bit at a loss here… You have permission to access via FTP and via the below login. You can also activate/deactivate plugins etc…

    Link to page with portfolio grid: http://pre.colorit.ch
    Link to page with masonry portfolio: http://pre.colorit.ch/frontpage2/
    Thanks so much.
    Corina

    • This topic was modified 7 years, 12 months ago by cd2s.
    #728297

    Hey Corina,

    you’ll need to click “Load more” button until some “Capital Market” items are visible, so Masonry is able to sort them. There is no other function for it unfortunately. Feel free to make a feature request for Kriesi here: https://kriesi.at/support/enfold-feature-requests/

    Best regards,
    Andy

    #729244

    Hey Andy

    Thanks so much for looking into this…

    I don’t think that is the issue, as it works perfectly on other installs on other websites with the Enfold theme. I did some further investigation and I also now have the issue on another site I am working on. On both these sites my client’s requested to remove the “all” filter and just wanted the sub-categories showing. They only wanted it removed on one of the Masonrys places on the website, not on the others.

    I will post the details on the access details for new site with the issue below. But here is what is happening:

    // We are using the Masonry with blog posts for our stockists page to filter stockists into different states. Here my client asked me to remove the “All” filter. You guys helped me to do this in this post (http://dev3.colorit.ch/alchemy/stockists/)

    // I am also using the Masonry for the Blog. I did select the categories I’d like to show, which then also creates an “all” in the Filter Nav.
    BUT it does not show the blog posts until I click on one of the filters in the filter nav. (http://dev3.colorit.ch/blog/)

    // I went and removed to custom function for the stockists and then it works. I don’t know though how to adapt it so the function only applies to the masonry with the stockists…(

    Here the function I removed to test, it is now back in.
    /* default to first category on Stockist filter */

    add_action(‘wp_footer’, ‘ava_auto_click’);
    function ava_auto_click(){
    ?>
    <script>
    (function($){
    $(window).load(function() {
    $(‘.nsw_sort_button’).trigger(‘click’);
    });
    })(jQuery);
    </script>
    <?php
    }

    Would appreciate any help. Thank you so much.
    & Happy New Year.

    #729632

    Hi,

    I changed the code to following one

    /* default to first category on Stockist filter */
    add_action('wp_footer', 'ava_auto_click');
    function ava_auto_click(){
    ?>
    <script>
    (function($){	
    	$(window).load(function() {
    		$('#stockist .nsw_sort_button').trigger('click');
    	});	
    })(jQuery);
    </script>
    <?php
    }

    Please review your website now :)

    Best regards,
    Yigit

    • This reply was modified 7 years, 11 months ago by Yigit.
    #729653

    Hello Yigit

    You are truly awesome… thank you sooooo much.

    I will go and check the other website where I have the same issue and see if I can replicate…

    All the best,
    Corina

    #729659

    Hey Corina!

    Not at all! :)
    We will keep the thread open and wait to hear from you. Thread will be on hold until you reply. You can simply reply to reopen it.

    Cheers!
    Yigit

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