how to make menù and header 100% width
-
Hello,
i would like that header and menu are not included in the “container-wrap” div but i would like them 100% browser wide. How to do it?Thank you
-
Hi alederodesign
Can you share your site URL. It will be easy for us to debug.
Cause checked this theme locally and the menu width is 100%.Thanks and CHEERS !!!!
yes of course the url site is http://www.alesitiprova.it
Thank you 🙂
add this to child functions.php or wp-content/meso-custom-functions.php
function meso_remove_init_div() { remove_action('bp_before_header', 'meso_add_top_nav'); remove_action('bp_inside_container_wrap', 'meso_add_primary_nav'); remove_action('bp_before_container_wrap','meso_add_theme_header'); } add_action('init','meso_remove_init_div'); function meso_add_init_div() { add_action('bp_before_bodywrap', 'meso_add_top_nav'); add_action('bp_before_bodywrap','meso_add_theme_header'); add_action('bp_before_bodywrap', 'meso_add_primary_nav'); } add_action('init','meso_add_init_div',20);you need to have v1.6.5+ for this hook to work
Yes I have it thank you.
And if i would like to add an adsense ads after the customer image in the header how to do it?use customize->advertisement->ad location->top header
I have tried but does not put the ads where i want. I would like insert the ads in after the custom image which is in the custom-img-header div.
Is that possible?try add this
function meso_custom_banner() { ?> == html code == <?php } add_action('bp_inside_header','meso_custom_banner',20);it doesn’t. The ads is above menu and above header
It works if i put header on top. If i leave it in this way then i have the menu’s the problem which should stay on top. how to move the menù on top correctly?
I have used the position absolute and top:0 but then the header does not work properly above all in chrome. I leave it in this way so you can check the code on the url http://www.alesitiprova.itThank you 🙂
no clue where you going with this. you should not have position absolute the header. the code i given above already had order as you request
– top nav
– header/custom img header
– primary navthis is more like a customization question. try revert your css on header position and add this instead
function meso_custom_banner() { ?> == html code == <?php } add_action('bp_after_header','meso_custom_banner',20);adding this code should have order like
– top nav
– header/custom img header
– ad code <!– bp_after_header hook –>
– primary navOk i got it. Thank u very much
The last question is how to change the top navigation red color
Thank you in advance for allcustomize->colors->top nav color
The topic ‘how to make menù and header 100% width’ is closed to new replies.
