-
AuthorPosts
-
June 30, 2016 at 9:42 am #655145
Hello,
I’d like to have a search bar displayed in my mobile view. I couldn’t find anything. I want it to be displayed below the navigation and over the header image. not in the hamburger. Is there a way?
Best wishes
marleneJune 30, 2016 at 3:47 pm #655328I actually managed to get the searchbar. But i want it to be displayed above my logo and beneth the orange bar. i tried to insert this code into header.php
add_shortcode('avia_search', 'get_search_form');
but it didnt work. is there something i am missing?June 30, 2016 at 8:50 pm #655468Hi,
Thanks for getting in touch with us!
Currently the search bar is above the logo how you want it but inside the top second header. The code is added correctly or the search bar would not show, it is where in the file you added the code. Take it out of the div class for the second header if you do not wint it inside the orange.
Let me know if you need further assistance.
Best regards,
JordanJuly 1, 2016 at 8:59 am #655589if i remove the div it will be exactly where it was. the color is adjusted to the whole second header. i want to insert it into header.php – because i want to show it above the logo and beneth the second header. can you tell me where to insert this code?
add_shortcode('avia_search', 'get_search_form');
greets.
- This reply was modified 8 years, 4 months ago by hannerinc.
July 2, 2016 at 7:37 am #656041Hi,
Could you please provide login details to your site, so that we can have a closer look and assist you further. You can place the information in the Private Content section of your reply.
Best regards,
JordanJuly 4, 2016 at 9:01 am #656418Here they are
July 5, 2016 at 6:23 am #656828Hi!
Thank you for the info. Please remove the search code from the phone info field then add this in the functions.php file:
add_action('ava_main_header', 'ava_main_header_mod', 10); function ava_main_header_mod() { $output = '<div class="sucheGerl">'; $output .= '<form action="http://gebrauchte-minibagger.at/" id="searchform" method="get" class="">'; $output .= '<div>'; $output .= '<input type="submit" value="" id="searchsubmit" class="button avia-font-entypo-fontello">'; $output .= '<input type="text" id="s" name="s" value="dfsfdsfds" placeholder="Suche">'; $output .= '</div>'; $output .= '</form></div>'; echo $output; }
Adjust the position with css.
Best regards,
IsmaelJuly 5, 2016 at 7:14 am #656839Hi ismael
it doesnt work it says the following…
the website should go online today, could you please help me- This reply was modified 8 years, 4 months ago by hannerinc.
July 8, 2016 at 3:49 am #658263Hey!
My bad. The callback name is different from the actual function. We modified the code above. Please try it again.
Regards,
IsmaelJuly 8, 2016 at 9:37 am #658312Thank you!!!!!!!
July 11, 2016 at 6:50 am #659093Hi,
Glad we could help.
Let us know if you have any questions.Best regards,
Vinay -
AuthorPosts
- You must be logged in to reply to this topic.