-
AuthorPosts
-
August 11, 2014 at 4:49 pm #302713
Hi,
I’ve read an other question about placing the search option in the mobile display.
I’ve placed this code into my “Quick CSS” field on the general styling tab of my theme options:
@media only screen and (max-width: 989px) { .html_mobile_menu_tablet .main_menu, .html_mobile_menu_tablet #header_main_alternate, .responsive #header .main_menu ul, #top #menu-item-search { display: block; } .av-main-nav li { display: none; }} @media only screen and (max-width: 990px) { li#menu-item-search a { font-size: 24px!important; } nav.main_menu { float: right; margin-right: 15%; }}
But the search field on mobile doesn’t show up.
Rogier Koning
August 12, 2014 at 10:12 am #303045Hi Rogier!
Refer tot his topic:
https://kriesi.at/support/topic/mobile-search-bar/Best regards,
JosueAugust 12, 2014 at 11:59 am #303133Hi,
An other question before I fiddle with it, because the website is live already.
I see that I have to search the header.php, find this code (do_action(‘ava_after_main_menu’);) and add following code right below it: echo get_search_form();
In the real the code now looks like this:
<div id='main' data-scroll-offset='<?php echo avia_header_setting('header_scroll_offset'); ?>'> <?php do_action('ava_after_main_container'); ?>
Do I change it like this:
<div id='main' data-scroll-offset='<?php echo avia_header_setting('header_scroll_offset'); ?>'> <?php do_action('ava_after_main_container'); echo get_search_form(); ?>
or like this:
<div id='main' data-scroll-offset='<?php echo avia_header_setting('header_scroll_offset'); ?>'> <?php do_action('ava_after_main_container'); ?> <?php echo get_search_form(); ?>
Or like this:
<div id='main' data-scroll-offset='<?php echo avia_header_setting('header_scroll_offset'); ?>'> <?php do_action('ava_after_main_container'); ?> echo get_search_form();
The last one seems stupid to me but from you’re explication for me the most logical.
Rogier
August 12, 2014 at 5:42 pm #303353Hey Rogier!
Either this:
<div id='main' data-scroll-offset='<?php echo avia_header_setting('header_scroll_offset'); ?>'> <?php do_action('ava_after_main_container'); echo get_search_form(); ?>
Or this:
<div id='main' data-scroll-offset='<?php echo avia_header_setting('header_scroll_offset'); ?>'> <?php do_action('ava_after_main_container'); ?> <?php echo get_search_form(); ?>
Is OK, the “echo get_search_form();” is a PHP function and must be inside PHP tags.
Regards,
Josue -
AuthorPosts
- You must be logged in to reply to this topic.