Adding Adsense Between Logo and Categories

Community Forums Forums Design Tips and Tricks Adding Adsense Between Logo and Categories

This topic is: not resolved

Tagged: ,

This topic contains 2 replies, has 2 voices, and was last updated by  ukcharliee 1 year, 7 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #8034

    ukcharliee
    Participant
    Post count: 1

    Hi,

    I am fairly new to the focus theme, but am loving it!

    Please could someone advise me how to add an adsense leader-board between the logo and the upper categories on my website: http://www.waystogetripped.com.

    Regards,

    Charlie

    #8051

    Chris Cree
    Participant
    Post count: 147

    You’re going to need to add something like this to your functions.php file.
    [php]add_action( ‘genesis_after_header’, ‘add_my_leaderboard’ );
    function add_my_leaderboard() {
    echo ‘<div class="leaderboard">’; ?>
    [banner HTML goes here]
    <?php
    echo ‘</div><!– end .leaderboard –>’;
    }[/php]

    Obviously you’ll have to change out [banner HTML goes here] with the code for your banner. Then add some styling to get it looking the way you want it in your style.css file.


    #10107

    ukcharliee
    Participant
    Post count: 1

    Thanks Chris for the help, this is the finished result: http://www.waystogetripped.com/

     

    Kindest Regards,
    Charlie

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.