
Originally Posted by
chuckrey
I realize this is an older post but I have a question regarding the discussion. Are you speaking of viewing the search bar in desktop mode? I am trying to get the search bar to display on the front page of responsive/portrait mobile without having to click on the toggler menu bar. Can you tell me if you know of a solution for this request? Thanks!
Responding to my own request after trying a couple of options one worked for me, right or wrong, it works.
In case anyone else wants to do the same, here is what I did...
file: tpl_header
Grabbed the below bit of code from around line# 72 and relocated it to just below "tagline" tag around #112.
Since it was placed below the tagline, it is using the TaglineWrapper css, so it fit perfect for my purpose. The only css I needed to add was in stylesheet.css
Code:
@media only screen and (orientation:portrait)
#taglineWrapper {padding-top:10px;}}
*** I do not use the tagline so not sure how it would interact, I assume a bit of css to get it worked out if needed. It also moved the search bar from the navmain to the tagline area across from the logo on desktop which I prefer. Keep in mind this also removes it from the toggle in Responsive which I don't mind since it is displayed in the header.
Code Moved from around #72 to #112:
Code:
<?php
require DIR_WS_MODULES . zen_get_module_sidebox_directory('search_header.php');
?>
There is probably a bunch of different ways to make it work, but I am not a coder and this worked for me.
Bookmarks