Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #688550

    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!

    #689907

    Still wondering if this is possible.

    Thanks,

    #690318

    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

    #690322

    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

    #692047

    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

    #1137554

    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

    #1138619

    Hi,

    That is possible, but you have to modify the config-templatebuilder > avia-shortcodes > portfolio > portfolio.js file. Look for instances of this code and remove them.

    line 204 & line 229:

    methods.scroll_top();
    

    Best regards,
    Ismael

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