Ad Rotate to Manage ads?

Posted in: Newspaper
Post count: 58

Has anyone had experience using the Ad Rotate plugin with the Newspaper theme? Will it allow for use of the same ad postions as the theme panel?

Thanks!

Post count: 6600
Post count: 58

I’m trying to setup AdRotate and use the following code to place in the Header Ad location:
<?php echo do_shortcode('[adrotate group="1"]'); ?>
Is this the correct usage? When I use the code the following characters show instead of the ad: ‘); ?>

Post count: 6600

Hi,

I believe this happens because you use the php tags while the php tags are open so you just need to add the echo do_shortcode('[adrotate group="1"]'); without the opening tag and ?> the closing one. Add it like this and be careful at the php tags: http://screencast.com/t/SRqJPSwY
Hope this helps!

Thanks

Post count: 58

Lucian,

Thanks for the response. I entered as you instructed and this was the output.
echo do_shortcode('');

So the AdRotate shortcode is being stripped out?

Edit: I simply just placed the AdRotate shortcode in and the ad worked.

  • This reply was modified 11 years by k24.
Post count: 58

After updating to the latest version of Ad Rotate, my ads stopped wrapping text around the ad. It previously worked. I’ve been in contact with the Ad Rotate developer and he confirms that this code should allow the text to wrap around the ad: <div style="float: left;"></div> as it did before. If you are familiar with Ad Rotate it has a section in Group management for Wrapper code before and Wrapper after. I’m just wondering if there may be anything with the theme that might prevent this from working properly.

Thanks,

Kris

Edit: Here is an example of the ad not text wrapping. http://www.vbjusa.com/news/top-stories/ipz-helping-to-grow-tech-scene-in-downtown-vancouver/

  • This reply was modified 11 years by k24.
Post count: 7909

Hi,

I have checked your site and found that you did not add float left to the container so it has 100% width: http://screencast.com/t/ZfzLjBZy
You can try to add you div style above or if this class doesn’t change you can try this custom css in Theme Panel > Custom Css: http://screencast.com/t/fC1zULIf

Thanks!

Viewing 7 posts - 1 through 7 (of 7 total)
The forum ‘Newspaper’ is closed to new topics and replies.