Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #599411

    LLD
    Participant

    Ah, sorry. I just typed something to the search what is not existing (like djkdlkdkld – for no search result).

    My problem is that the footer now a bit long. If I customize the no search result page, it seems perfect but in normal window it’s too long. As you can see in the first screenshot, the footer contains a text. In the second screenshot, the text is under the Windows taskbar cuz the page is too long.

    #599481

    Rue Nel
    Moderator

    Hello There,

    Thanks for the updates! Please remove the JS script and use this code instead:

    (function($) {
      $(window).on('load resize', function(){
        var $window = $( window ).height();
        var $navbar = $('.x-navbar').height();
        var $footer = $('.x-colophon.bottom').height();
        var $headerlandmark  = $('.x-header-landmark').height();
        var $container = $('.x-container.max.width.offset').height();
        var $min = $window-$navbar-$footer-$headerlandmark-118;
    
        if( $container > $min ) {      
          // do nothing because the container has more height than the minimum height
        } else {
          $('.x-container.max.width.offset').css('min-height', $min );
        }
        console.log('min= ' + $min);
        console.log('window= ' + $window);
      });
    })(jQuery);

    Please let us know if this works out for you.

    #599509

    LLD
    Participant

    Thank you for the new code.
    Still too long but working (like the JS before, nothing changed).

    #599744

    Rad
    Moderator

    Hi there,

    Looks fine on my end, would you mind providing a screenshot of what you’re currently seeing?

    Here is mine,

    Thanks.

    #600091

    LLD
    Participant

    Ooops. Now I understand everything. 🙂 Mine was longer because of the WordPress admin toolbar…
    Thank you so much for the code!

    #600093

    Thai
    Moderator

    You’re most welcome 🙂