Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #320070

    Hi!

    I currently have an open ticket for a portfolio issue (#318594). One thing that might solve my problem is if I could have portfolio items in the”Portfolio Grid” open in the Ajax preview when viewed on a desktop but make them open single page posts when viewed on mobile. Would this be possible since there is no easy way to modify the ajax preview itself.

    #320303

    Hi Chris!

    Thank you for visiting the support forum.

    I will say that is not possible without major script modifications but I’ll ask the rest of the support team to take a look. Maybe they have a better idea.

    Cheers!
    Ismael

    #320304

    Hi!

    I think a possible solution is to create two portfolio grids on the same page, one with the ajax preview enabled and the other not. Show or hide a portfolio grid on different screens using media queries.

    Cheers!
    Ismael

    #320514

    Hey Ismael!

    I really like this idea! I hate to bother you anymore but could you provide a snippet for this?

    I already added a snippet to enable post navigation on mobile devices so I think this could work good :)

    Thanks again for all your help!

    #320913

    Hey!

    First, please refer to this link on how to add custom css class on the advance layout builder elements: http://kriesi.at/documentation/enfold/turn-on-custom-css-field-for-all-alb-elements/

    Apply different classes on the Portfolio Grid element. Use “portfolio-desktop” for the desktop version and “portfolio-mobile” on the other. Use this on Quick CSS or custom.css:

    @media only screen and (min-width: 768px) {
     .portfolio-mobile {
     display: none !important;
     }
    }
    
    @media only screen and (max-width: 767px) {
    .portfolio-desktop {
     display: none !important;
     }
    
     .portfolio-mobile {
     display: block !important;
     }
    }

    Best regards,
    Ismael

    #321307

    Perfect! Thanks Ismael.

    One last thing though. I have more than 100 portfolio items in the “Portfolio Grid” so they won’t all fit on one page. When I sort/filter the items by category, it only shows the items on the current page. Is there any way to show sort results from all pages in the portfolio grid. Maybe I could increase the number of items that can be displayed on one page?

    #321727

    Hi!

    That is a limitation of the sort function. Increasing the number of items on one page may cause page load issues specially on mobile devices. They might not load at all. Please enable the pagination.

    Best regards,
    Ismael

    #322679

    Thanks for the snippet!! Works perfect :) No worries about the other stuff…you’ve given me enough to work with.

    Thanks so much!

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Make portfolio item open ajax on desktop but open single page post on mobile’ is closed to new replies.