Tagged: banner
-
AuthorPosts
-
November 7, 2014 at 4:14 pm #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!
November 7, 2014 at 9:01 pm #347927Hi 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.
February 4, 2015 at 12:54 am #390473Quick 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.
February 4, 2015 at 10:14 am #390609Hi!
@newlyswissed Please refer to my post here – https://kriesi.at/support/topic/how-to-add-javascript-to-footer/#post-369981Regards,
YigitFebruary 18, 2015 at 3:59 pm #398209This 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!
February 18, 2015 at 9:33 pm #398464Hey!
For the header you can try using the “ava_after_main_menu” or “ava_main_header” filters. (see my first post)
Cheers!
ElliottFebruary 18, 2015 at 10:46 pm #398516Oh 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?
February 18, 2015 at 11:49 pm #398538This reply has been marked as private.February 19, 2015 at 9:12 am #398712Hey!
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,
RikardFebruary 19, 2015 at 3:51 pm #398964Thanks, 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!
February 19, 2015 at 3:58 pm #398970Hey!
Please add following code to Quick CSS and adjust as needed
ins.adsbygoogle { left: 25%; position: relative; }
Cheers!
YigitFebruary 19, 2015 at 4:34 pm #398999Absolutely brilliant, that worked. You guys are the best.
Thank you!
-
AuthorPosts
- The topic ‘Inserting 728×90 Banner into Header’ is closed to new replies.