• Resolved alederodesign

    (@alederodesign)


    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

Viewing 14 replies - 1 through 14 (of 14 total)
  • 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 !!!!

    Thread Starter alederodesign

    (@alederodesign)

    yes of course the url site is http://www.alesitiprova.it

    Thank you 🙂

    Theme Author Richie KS

    (@rkcorp)

    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);
    Theme Author Richie KS

    (@rkcorp)

    you need to have v1.6.5+ for this hook to work

    Thread Starter alederodesign

    (@alederodesign)

    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?

    Theme Author Richie KS

    (@rkcorp)

    use customize->advertisement->ad location->top header

    Thread Starter alederodesign

    (@alederodesign)

    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?

    Theme Author Richie KS

    (@rkcorp)

    try add this

    function meso_custom_banner() { ?>
    == html code ==
    <?php }
    add_action('bp_inside_header','meso_custom_banner',20);
    Thread Starter alederodesign

    (@alederodesign)

    it doesn’t. The ads is above menu and above header

    Thread Starter alederodesign

    (@alederodesign)

    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.it

    Thank you 🙂

    Theme Author Richie KS

    (@rkcorp)

    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 nav

    this 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 nav

    Thread Starter alederodesign

    (@alederodesign)

    Ok i got it. Thank u very much

    Thread Starter alederodesign

    (@alederodesign)

    The last question is how to change the top navigation red color
    Thank you in advance for all

    Theme Author Richie KS

    (@rkcorp)

    customize->colors->top nav color

Viewing 14 replies - 1 through 14 (of 14 total)

The topic ‘how to make menù and header 100% width’ is closed to new replies.