Rotation Not Working When Using Both VIEWPORT and ROTATE

[ad_1]

I wanted to insert different banners based on Desktop and Phone Viewport. It works fine without ROTATE.

However, now I have 2 banners each for Desktop and Phone. I’m using the below code but it also inserts phone_ad_1 and phone_ad_2 even on Desktop and similarly, it also inserts desktop_ad_1 and desktop_ad_2 on Mobiles.

In short, it is picking all 4 ad units and rotating them irrespective of VIEWPORT.

[ADINSERTER VIEWPORT=”Desktop” css=”min-height: 90px;”] [ADINSERTER ROTATE name=”728_90_1″ share=”50″]desktop_ad_1

[ADINSERTER ROTATE name=”728_90_2″ share=”50″]desktop_ad_2

[ADINSERTER VIEWPORT=”Phone” css=”min-height: 50px;”] [ADINSERTER ROTATE name=”320_50_1″ share=”50″]phone_ad_1

[ADINSERTER ROTATE name=”320_50_2″ share=”50″]phone_ad_2

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer