Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #974819

    Hi

    White Space under Filterable portfolio within Tab Section
    I have portfolio items in a filterable portfolio section “July Availability”
    But when I filter by other dates (eg 21-28 July) there is a lot of white space below the items
    I have the tab section set to “adjust to content height”

    Brian

    #975098

    Hey briandeeney,

    Thank you for using Enfold.

    The tab’s “set_slide_height” function is not being called upon clicking the portfolio sort button. You may need to modify the config-templatbuilder > portfolio > portfolio.js file. Add this code around line 59.

    setTimeout(function() { $(window).trigger('av-height-change'); }, 600);
    

    Below this one…

    parentContainer.find('.open_container .ajax_controlls .avia_close').trigger('click');
    

    Disable the js and css compression in the Performance panel temporarily. Don’t forget to purge the cache and reminify the script and stylesheets.

    Best regards,
    Ismael

    #975206

    Hi Ismael

    Thanks for suggestion
    I added in that code
    setTimeout(function() { $(window).trigger(‘av-height-change’); }, 600);

    but I’m still getting the empty white space below items in filterable portfolio

    #975571

    Hi,

    Thanks for the update.

    Did you purge the cache or disable the css/js compression after? Please provide the login details in the private field. We would like to test it further.

    Best regards,
    Ismael

    #975593

    Hello Ismael
    yes I’m fairly certain I did those things
    I’ve supplied details for testing
    Let me know what you find

    #975658

    Hi,

    Thanks for the info.

    I adjusted the script a bit. The tab section auto adjusts now when you click on the sort buttons.

    setTimeout(function() { $(window).trigger('av-content-el-height-changed'); }, 100);
    

    Best regards,
    Ismael

    #975742

    Hello Ismael
    Thanks for your help but portfolio is not working correctly. For July Availability there are currently showing 9 portfolio items under “All”
    If I filter by say July 21-28 and then go back to All – some portfolio items are hidden.- sometimes 3 show and sometimes 6
    I am using Chrome on a desktop but looks similar in Opera and Edge

    I did put code you suggested into portfolio.js
    setTimeout(function() { $(window).trigger(‘av-content-el-height-changed’); }, 100);

    #976097

    Hi,

    Thanks for the update.

    Delay the execution a bit. Set the timeout to 1000ms instead of 100ms.

    setTimeout(function() { $(window).trigger('av-content-el-height-changed'); }, 1000);
    

    The issue is that the tab section adjusts its height before the portfolio items are fully loaded so delaying the execution of the “set_slide_height” should help.

    Best regards,
    Ismael

    #976244

    Hi Ismael

    Thanks
    Yes, that works – with a slight delay before all portfolio items appear

    Quick question – each time I update the theme do i need to remember to insert..
    setTimeout(function() { $(window).trigger(‘av-content-el-height-changed’); }, 1000);
    at wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/portfolio/portfolio.js

    or will this be fixed in next update of theme

    Brian

    #977241

    Hi Brian,

    Glad it works. You have to modify the file after an update, unfortunately. We’ll forward the issue to the team. :)

    Best regards,
    Ismael

    #977242

    Thanks ismael

    I’ve opted not to use the tabs + filterable portfolio and gone for a different setup at my site that does the same thing

    #977266

    Hi,

    Alright. We’ll close the thread now.

    Have a good one! :)

    Best regards,
    Ismael

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘White Space under Filterable portfolio within Tab Section’ is closed to new replies.