Tagged: ajax, ajax portfolio, Portfolio
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
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
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?
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