Tagged: 

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #347773

    Is it possible to insert a 728×90 banner (advertising space) into the header? Would this be done by CSS tweaks or would the header.php need to be altered?

    Thanks in advance!

    #347927

    Hi MLA18!

    Navigate to Dashboard > Enfold > General Styling > Logo Area and there will be an option there called “Background Image” which you can use to upload a custom image for the header.

    Or is this an adsense module your trying to add? If it’s just a normal image then you can use the previous mentioned option but if your trying to insert HTML or scripts then try adding this to the bottom of your functions.php file.

    add_filter( 'ava_after_main_menu', 'enfold_customization_add_stuff_to_header' );
    function enfold_customization_add_stuff_to_header(){
         echo 'your code goes here';
    }
    

    Best regards,
    Elliott

    • This reply was modified 10 years ago by Elliott.
    #390473

    Quick question: Would I be inserting the <script> where you say echo 'your code goes here';?

    eg.
    echo '<script type="text/javascript" src="http://banners...>';

    Thanks!

    • This reply was modified 9 years, 9 months ago by newlyswissed.
    #390609
    #398209

    This would be an Adsense banner/module I am referring to. I see the link above about placing it in the footer…but how would I get it into the header?

    Thanks!

    #398464

    Hey!

    For the header you can try using the “ava_after_main_menu” or “ava_main_header” filters. (see my first post)

    Cheers!
    Elliott

    #398516

    Oh wow…I have no idea how missed that before. Thanks for the info, Elliot!

    I have added the code and it worked. However, the banner/module sits right on top of/covers the site logo. Is there a way to style this element?

    #398538
    This reply has been marked as private.
    #398712

    Hey!

    Try adding this to your Quick CSS:

    #header_main .container{
    height:300px !important;
    }

    Adjust the value 300 if it’s too much or little

    Best regards,
    Rikard

    #398964

    Thanks, Rikard! But unfortunately that did not fix the problem. The header height is correct now, however the adnsene banner is still sitting directly on top of the site logo.

    Thanks!

    #398970

    Hey!

    Please add following code to Quick CSS and adjust as needed

    ins.adsbygoogle {
    left: 25%;
    position: relative;
    }

    Cheers!
    Yigit

    #398999

    Absolutely brilliant, that worked. You guys are the best.

    Thank you!

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘Inserting 728×90 Banner into Header’ is closed to new replies.