Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1276909
    aloraguerrero
    Participant

    Hi, I’m trying to place a leaderboard ad on the header, but instead of the ad being served immediately, the site shows a “+” sign on the upper-right corner. How do I remove that so visitors immediately see the ad? The ad also blocks the logo of the site. I want it moved under the logo.

    Thanks.

    #1276920
    Rue Nel
    Moderator

    Hello There,

    Thanks for writing in! The widget area with the (+) may not be a good place for your leatherboard ad. I would like to suggest that you use a child theme because what you are trying to accomplish requires a template customization. This allows you to make code changes that won’t be overwritten when an X update is released. After your child theme is setup, please review how we recommend making template changes in Customization Best Practices.

    After the child theme is set up, please add the following code in your child theme’s functions.php file

    // Displaying leaderboard ad above the masthead (or above the topbar)
    // =============================================================================
    function add_leaderboard_ad(){ ?>
      
      <div class="leaderboard-ad">
        <p>Insert the leather ad code here</p>
      </div>
    
    <?php }
    add_action('x_before_view_global__topbar', 'add_leaderboard_ad');
    // =============================================================================

    We would loved to know if this has work for you. Thank you.

    #1276926
    aloraguerrero
    Participant

    Hi, tried that. It didn’t work. I used a short code from WP Pro Advertising system. Is that okay?

    #1276928
    aloraguerrero
    Participant
    This reply has been marked as private.
    #1276937
    Rue Nel
    Moderator

    Hello There,

    Thanks for letting us know that it has been useful to you.

    Cheers.

  • <script> jQuery(function($){ $("#no-reply-1276909 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>