Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #627593

    Hi

    I understand AJAX portfolio can be opened by default to first or nth item (https://kriesi.at/support/topic/ajax-portfolio-preview-open-by-default/) but is it possible to link/open a particular item from the list?

    Thanks

    #628898

    Hey WP Dev,

    It is not entirely clear please elaborate which list you are referring to? so we can help you better.

    Best regards,
    Vinay

    #629183

    List = list of items in Ajax Portfolio

    For ex. On this URL: http://kriesi.at/themes/enfold/portfolio/portfolio-ajax/
    Is it possible to link to “Single Portfolio: 2/3 Video” opened by default?

    #630425

    Hi,

    Yes, that should be possible. Just look for the id of the portfolio item in the grid-entry container’s class attribute. In the demo, the post id is “post-entry-1503”. This should work:

    add_action('wp_footer', 'ava_auto_click');
    function ava_auto_click(){
    ?>
    <script>
    (function($){	
    	$(window).load(function() {
    		$('.post-entry-1503').trigger('click');
    	});
    })(jQuery);
    </script>
    <?php
    }

    Best regards,
    Ismael

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