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

    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/

    #258257

    Any reply to this?

    #258414

    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

    #258488

    Where about in the code should I add this?

    #258489

    At the end of functions.php

    #258495

    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

    #258516

    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

    #258822

    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

    #258858

    Hi!

    Please add following code to Quick CSS as well

    .custom_content { z-index: 999; }

    then add anchor tags

    Best regards,
    Yigit

    #258864

    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

    #258868

    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

    #258875

    Awesome thanks for all your help……Great support!

    Regards

    Hayden

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘Adding 468 x 60 banner to header’ is closed to new replies.