WordPress.org

Ready to get started?Download WordPress

Forums

Customizr
[closed] Adsense 728x90 on header (4 posts)

  1. Wastabik
    Member
    Posted 10 months ago #

    How can I show the responsive Leaderboard (728x90) Adsense ad unit in the space just above the menu? Let's say, I remove the tagline and the social links. Or, can I place it below the menu, changing the overall size of the header space?

  2. nikeo
    Member
    Theme Author

    Posted 10 months ago #

    Hi,
    To do that, you could make use of the action hooks in Customizr :
    - '__before_header',
    - '__header',
    - '__after_header'
    - 'before_navbar',
    - '__after_navbar'

    1) Create a rendering function of your adsense ad :

    function display_my_adsense() {
    ?>
    <!-- PASTE YOUR GOOGLE CODE HERE -->
    <?php
    }//end of function

    To render it just above the menu, add this action :

    add_action('before_navbar' , 'display_my_adsense');

    Paste this code in your functions.php (atry different hooks if needded)

    Hope this helps and thanks for your feedback on this!

  3. jrothra
    Member
    Posted 1 month ago #

    I'm trying to place the same type of responsive ad on mine, but at the action hook "before_content_title" so that it's right above the post title (I think).

    However, the ad isn't showing up nor a blank space for it. I followed the instructions listed above (just changed the action hook).

    URL tested: http://www.johnrothra.com/nine-factors-hinder-evangelism-rainers-seven-plus-two/

  4. esmi
    Forum Moderator
    Posted 1 month ago #

    If you require assistance then, as per the Forum Welcome, please post your own topic instead of tagging onto someone else's topic.

    I am now closing this 9 month old topic as it references an older version of WordPress.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic