• Resolved tinkertravels

    (@tinkertravels)


    Hi,

    I have created 2 new blocks within the ad inserter settings:

    First one: ticked to only show on mobile and ticked to display as shortcode
    Second one: ticked to only show on desktop and tablet and ticked to display as shortcode

    I have then copied the two shortcodes into a code widget within my post. Like below:

    <!– display for desktop –>
    [adinserter block=”5″]
    <!– display for mobile –>
    [adinserter block=”4″]

    Saved my post and refreshed the page, however both ads are displaying.

    I was expecting it to show the one i wanted to desktop and tablet, then when on mobile only show the mobile ad?

    Reason being is i have two different types of ads, i want to use an in-article for mobile and a standard responsive ad for everything else?

    Any ideas why its showing both regardless?

    Cheers

    • This topic was modified 7 years, 4 months ago by tinkertravels. Reason: added website, but page in question is in private mode

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Using shortcodes for responsive display’ is closed to new replies.