• Resolved Mike

    (@internetgenie)


    Hello,

    Firstly thank you for a great plugin!

    We are building a news website at the moment and we are looking to add an Ads Place inside the header of our site so we can have advertisers on there.

    Is there a way for us to add the ads place inside the header.php to do this.

    Thank you in advance!

    https://wordpress.org/plugins/simple-ads-manager/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi internetgenie – this is the code I inserted in the header.php:

    <?php if(function_exists(‘drawAdsPlace’)) drawAdsPlace(array(‘id’ => 1), array(‘before’ => ‘<div class=”ad”>’, ‘after’ => ‘</div>’)); ?>

    good luck 🙂

    Thread Starter Mike

    (@internetgenie)

    Hi mariavibe-Thank you for answering me.

    I have managed to come up with a work around by adding a widget area into the header.php by following the instructions here:

    http://www.tips4developer.com/wordpress/wordpress-create-custom-widget-area/ then just adding an Ads Place widget in the new widget area created and using CSS to get it to look right.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Ads in header.php’ is closed to new replies.