Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #314546

    Hello,

    Is it possible to add a 728 x 90 ad banner to the right of my logo on my site (wpadviser.com)?

    If so, how would I go about doing this?

    Thanks,

    Dan

    #314835

    Hey Dan!

    Try adding this at the very end of your theme / child theme functions.php file:

    function put_stuff_in_header() {
    ?>
    <div class="banner"><img src="banner_url"></div>
    <?php
    }
    
    add_action('ava_after_main_menu', 'put_stuff_in_header');

    Cheers!
    Josue

    • This reply was modified 10 years, 2 months ago by Josue.
    #319400

    This worked but it put the banner partially under my logo. How do I control where the banner is placed? I would like it evenly placed between the right border of the theme and the logo and centered vertically as well.

    Here is a link to my website: http://wpadviser.com

    Thanks.

    • This reply was modified 10 years, 2 months ago by dreye01.
    #319421

    Hey!

    I’m not seeing the banner being applied to the header.

    Regards,
    Josue

    #319485

    I removed it because of how it looked.

    #319505

    Hey!

    Add it again, then reply back to this topic so we can help you with the styling.

    Regards,
    Josue

    #319509

    Sorry about that. I added it again.

    Thanks.

    #319925

    Hi!

    Please add following code to Quick CSS in Enfold theme options under General Styling tab

    .banner {
    position: relative;
    left: 34.2%;
    top: 23%;
    }
    @media only screen and (max-width: 1140px) {
    .banner {
    width: 50%;
    left: 56%;
    }}

    Regards,
    Yigit

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.