Hi @Lely / Support,
I have two new issues on the same search results page.
When my search returns no results the header from my blog appears above the search box. See image in secure notes.
I thought I was hiding it with this code:
.search-results .x-header-landmark.x-container.max.width {
display: none;
}
but perhaps it’s not working because I use this code to display an image as my blog header:
.x-header-landmark {
margin: 15px auto 0;
height: 150px;
background-color: #FFFFFF;
background-repeat: no-repeat;
background-position: center center !important;
background-image: url(‘https://www.example/wp-content/uploads/2019/04/example-2.png’);
}
Thoughts?
Additionally the footer doesn’t stay on the bottom of the page on the results page despite me using this JS code:
jQuery(document).ready(function($) {
var $main = $(’.x-main’),
$windowHeight = $(window).outerHeight(),
$masthead = $(’.masthead’).outerHeight(),
$wpbar = $(’#wpadminbar’).outerHeight(),
$footer = $(’.x-colophon.bottom’).outerHeight() + $(’.x-colophon.top’).outerHeight();
$main.css(‘min-height’, $windowHeight - $masthead - $wpbar - $footer);
});
Thoughts?
Thanks
Brad