• Resolved webdee75

    (@webdee75)


    Hello !
    I use the Pro version to get posts opening in a popup on click, and I have an issue with the fancybox height that seems to be set on the under page height instead of being set on the post height itself… It gives a long scroll whith a veeery long white empty part after the main content of the post in the popup…
    Even the width is larger than the usual posts width.

    The code Google Devtools shows :

    <div class="fancybox-content" style="width: 1412px; height: 9999px;">

    With Header&Footer plugin I tried to add :

    <script>
    $(document).ready( function() {
    
    $('.fancybox-content').each(function(){
    $(this).attr('style','')
    }
    
    }
    </script>

    But it doesn’t change anything. How could I modify the code if it is dynamically generated by the plugin ?
    Would anybody have an idea to solve this problem ?
    Thanks for any help.

    • This topic was modified 3 years, 11 months ago by webdee75.
    • This topic was modified 3 years, 11 months ago by webdee75.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter webdee75

    (@webdee75)

    Found the soluce : The pb comes from the Blocksy theme css for posts that comes whith a calc for the #main-container height (flex) :

    min-height: calc(100vh - var(--admin-bar, 0px) - var(--frame-size, 0px) * 2);

    I changed it with :

    .vp-popup-iframe #main-container {min-height: auto !important;}

    And it seems to be OK now. If it can help somebody…

    Plugin Author nK

    (@nko)

    Hey.

    I have already answered you in the ticket system. Your solution for this problem is fine and in the next Pro plugin update we will add a compatibility styles for Blocksy theme.

    p.s. please, don’t use this forum for Pro plugin issues, it is not allowed by this forum rules.

    Regards, nK.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Popup Iframe (pro)’ is closed to new replies.