Viewing 12 posts - 1 through 12 (of 12 total)
Viewing 12 posts - 1 through 12 (of 12 total)
- The topic ‘Adding 468 x 60 banner to header’ is closed to new replies.
Hi there,
I am trying to add a banner to the top right of the header section. Banner size is 468 x 60.
I tried having a look in your support section however couldnt find a relevant solution.
Domain it http://aristocratpokiereviews.com/
Any reply to this?
Hi!
Try adding this to your functions.php file:
function after_head_image_func(){
echo "<div class='custom_content'><img src='_URL_'></div>";
}
add_action('ava_after_main_menu', 'after_head_image_func');
Change _URL_ by the URL of the banner.
Cheers!
Josue
Where about in the code should I add this?
At the end of functions.php
OK thanks
The banner is showing up however it’s now under the nav. I also need to be abel to have this as a click-able link.
Many thanks
Hayden
Change the code to:
function after_head_image_func(){
echo "<div class='custom_content'><img src='_URL_'></div>";
}
add_action('ava_main_header', 'after_head_image_func');
Then add this to the Quick CSS:
.custom_content{
position: absolute;
top: 0;
right: 0;
}
Regards,
Josue
Hi Josue,
Works perfectly thanks. I changed the CSS slightly. Is it possible to make this a link? I tried however only the right hand side was click-able.
Thanks in advance
Hayden
Hi!
Please add following code to Quick CSS as well
.custom_content { z-index: 999; }
then add anchor tags
Best regards,
Yigit
Awesome, works perfectly, however on an iphone it covers the logo………I can live with it, however if there is a fix for smaller screens then great. If not no worries
Hi!
Please add following code to Quick CSS as well
@media only screen and (max-width: 768px) {
#header_main { height: 140px; }
.custom_content { top: 80px; }}
Best regards,
Yigit
Awesome thanks for all your help……Great support!
Regards
Hayden