-
AuthorPosts
-
March 26, 2015 at 5:37 pm #418664
can i display the first menuentry (placeholder) of the megamenu next to the logo in the same row? first the logo then the menu. like here https://www.fototv.de/ ?
March 27, 2015 at 6:03 pm #419509Hey alfaweb2!
First off change your header layout to logo left and menu right and let us know when your done and we’ll give you some CSS to use.
Regards,
ElliottMarch 31, 2015 at 3:01 pm #421172Thank you Elliott ;)
March 31, 2015 at 3:04 pm #421175Is it possible to insert the Search Field in the Header like here https://www.fototv.de/ ? the search field should be displayed the whole time inside the header and NOT slide down by clicking on it. Is there a way with css?
April 1, 2015 at 12:57 pm #421851Hi!
You can add this to the Quick CSS field:
.main_menu { position: relative; left: 100px; }
Use this to add the default search form:
add_action('ava_inside_main_menu', 'ava_inside_main_menu_mod'); function ava_inside_main_menu_mod() { get_search_form(); }
Use css to modify the style.
Regards,
IsmaelApril 1, 2015 at 1:38 pm #421863Thanks. Looks really good. Can i get the search field to al position like here –> http://i.imgur.com/eELX7yz.jpg
And is it possible to show the 2nd Enfold Menu at the right end of the header? i want to display 2 or 3 menu entry (like contact,…).
Thanks.
April 2, 2015 at 6:37 am #422279Hey!
Replace the code with this if you want to show the secondary menu in the main header:
add_action('ava_inside_main_menu', 'ava_inside_main_menu_mod'); function ava_inside_main_menu_mod() { get_search_form(); //display the small submenu $avia_theme_location = 'avia2'; $avia_menu_class = $avia_theme_location . '-menu'; $args = array( 'theme_location'=>$avia_theme_location, 'menu_id' =>$avia_menu_class, 'container_class' =>$avia_menu_class, 'fallback_cb' => '', 'container'=>'', 'echo' =>false ); $nav = wp_nav_menu($args); echo "<nav class='sub_menu' ".avia_markup_helper(array('context' => 'nav', 'echo' => false)).">"; echo $nav; do_action('avia_meta_header'); // Hook that can be used for plugins and theme extensions (currently: the wpml language selector) echo '</nav>'; }
You can adjust the elements’ position via css. If you’re not sure what to do, look for any tutorial about google inspector and firebug. It will help a lot with custom css modifications.
Cheers!
IsmaelApril 3, 2015 at 1:30 pm #423010thanks, i try this out. But at the moment i have troubles with the logo and the menu? http://www.alfaweb.at/test/web-2-0-directory/wind/
can you see the problem? the logo is OVER the menu ;)
April 5, 2015 at 2:53 am #423548 -
AuthorPosts
- You must be logged in to reply to this topic.