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

    Hi,

    I am trying to make the Enfold Ajax Porfolio Grid open underneath instead of on-top.

    I notice there was a solution here: https://kriesi.at/support/topic/ajax-portfolio-preview-location/

    But the code does not seem valid any more.

    I am running on the latest release of Enfold, please can you let me know an updated fix?

    Thank you.

    #1222409

    Hey hloft,
    Sorry for the late reply, to have the portfolio ajax preview container open below the portfolio grid container, Try adding this code to the end of your functions.php file in Appearance > Editor:

    function custom_portfolio_ajax_script(){
      ?>
      <script>
    (function($){
      $(document).ready(function(){
    $( '.av-portfolio-grid-sorting-container' ).each(function() {
    $( this ).find( '.portfolio_preview_container' ).insertAfter( $(this).find('.grid-sort-container') );
    });
    });
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'custom_portfolio_ajax_script');

    This will be site wide, if you only want this to work on one page add your page ID to the beginning of .av-portfolio-grid-sorting-container with a space, like this .page-id-145 .av-portfolio-grid-sorting-container in the code above.
    Then clear your browser cache and check.

    Best regards,
    Mike

    #1222483

    Hi Mike,

    That’s worked a treat, thank you for your support as always.

    Harry

    #1222492

    Hi,
    Glad we were able to help, we will close this now. Thank you for using Enfold.

    For your information, you can take a look at Enfold documentation here
    For any other questions or issues, feel free to start new threads in the Enfold forum and we will gladly try to help you :)

    Best regards,
    Mike

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Ajax Portfolio Grid Open Underneath instead of On Top’ is closed to new replies.