Hi All,
I’m currently editing the search page (i.e. page with the results from the search) of the supreme directory theme.
Problem:
I have adjusted the footer.php to have a footer, whichs works nicely, the only problem is that the main content only adjusts automatically for the header and not a footer (which is 2.5vh of height). Thus, the page needs to be scrolled to see the footer.
Solution attempt:
I have gone through the code and found that there are 2 places that determine the height of the content:
(1) the following code is responsible for the left height (results in list or grid view):
<div id="geodir_content" class="" role="main" style="width: 63%; height: calc(100vh - 92px); overflow-y: scroll;">
(2) the following code is responsible for the right height (= map):
<aside id="gd-sidebar-wrapper" class="sidebar geodir-sidebar-right geodir-listings-sidebar-right" role="complementary" itemscope="" itemtype="http://schema.org/WPSideBar" style="width: 30%; height: calc(100vh - 92px); overflow: hidden;">
Now when I manually adjust the 100vh to 97.5vh (i.e. 100vh – my footer size of 2.5vh) in the code to test, it works well, both content sides adjust their height and the footer fits in nicely without any scrolling on the page.
However, when I resize the window (testint the responsiveness) after entering the code, the 97.5vh is overwritten back to 100vh, which is because the header height (the 92px) changes depending on the browser width. So I presume its a script that runs to measure the window height and then delivers the output for the 2 styles (left & right). However, I cant find the source of the code.
In which file would I need to amend the code to change outset 100vh to 97.5vh?
Many thanks
David