Tagged: ajax portfolio
Hello,
I am using the Grid Portfolio with the Ajax preview option. I wanted to know if it was possible when a user clicks on one of the portfolio items if it could expand a box open below it with a full-width div and have the content in there, like how Google images works. Right now when they click on a item it brings a box up at the top.
Thanks!
Still wondering if this is possible.
Thanks,
Hi,
My guess is that something like that would require a lot of customisations, but send us a link to the page in question and we’ll have a look at it.
Best regards,
Rikard
Sure Rikard,
I would just like it to work when you click on the portfolio item it opens up under it just like Google Images
Hi,
Please add this in the functions.php file:
add_action('wp_footer', 'ava_custom_script');
function ava_custom_script(){
?>
<script type="text/javascript">
(function($) {
function c() {
$('.portfolio_preview_container').insertAfter('.grid-sort-container');
}
c();
})(jQuery);
</script>
<?php
}
The code will move the portfolio preview container below the portfolio grid container.
Best regards,
Ismael
Hey,
could this be edited to open the box right in between above the actual item, without having to scroll to the top?
I got a long list of portfolio entries and don’t want the user to scroll after viewing one in Ajax.
Best wishes
Arne