Hello!
I would like to know how to put the search box OR the Products Search Box next to Logo, above Main Menu.
Found a previous entry in the to look in the header.php, but I was not able to find it there.
Thanks a lot in advance!
Hey!
Could you link that previous entry you mention?
Regards,
Josue
Hi Josue,
Here is the entry:
https://kriesi.at/support/topic/enfold-edit-header-css-search-bar/
br
Ronald
Hey!
Please go to Enfold/Includes folder and helper-main-menu.php file and make the changes there instead
Regards,
Yigit
Helo Yigit,
But the change will be overridden by the next update, correct?
Is there a solution for the cild theme solely?
br
Ronald
Hi!
Try putting this in your child functions.php file:
function custom_code_header(){
echo "<div class='header-search'>";
get_search_form();
echo "</div>";
}
add_action('ava_after_main_menu', 'custom_code_header')
Cheers!
Josue
Dear Josue,
Just tried it, but did not work out, the site is completey empty (whitescreen) if using this code.
Any idea?
br
Ronald
Hi!
Please go to Enfold/Includes folder and helper-main-menu.php file and find
if($headerS['header_social'] == 'icon_active_main' && !empty($headerS['bottom_menu'])) echo $icons;
and add following code right below it
get_search_form();
and adjust its position using following selector
#header form#searchform { margin-left: 40%; }
Regards,
Yigit
Hello Yigit,
This did work out fine from the first try,
Following needs to be settled:
1) The searchfiled isn’t responsive
2) The background of the ajax results is transparent, how can it be white?
Which CSS class/selector does the layout for the search box itsself?
Thank you for your ideas!
br
Ronald