• Resolved suprpp

    (@suprpp)


    I insert an ad into a post using a shortcode.

    Can I specify a wrapper around my ads like this?

    <div class="my-banner-class">
        <!--HTML output of AdRotate-->
    </div>

    If not, it would be a really neat feature.
    HTML code generated by AdRotate plugin is not very stylable.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Arnan de Gans

    (@adegans)

    You can put whatever you want in your adcode, adding the wrapper there.

    If you use groups you can use the wrapper in the groups wrapper code fields which may be easier to manage long term.

    Thread Starter suprpp

    (@suprpp)

    Hello,

    thank you for your prompt reply!

    I’ve tried adding the wrapper under “Manage Groups -> Wrapper code”.

    Code output is like this:

    <div class="g g-2">
      <div class="g-single a-8">
        <div class="banner-wrap">

    I need the code to be like this:

    <div class="banner-wrap">
      <div class="g g-2">
        <div class="g-single a-8">

    Is there a way to achieve this?

    Thread Starter suprpp

    (@suprpp)

    Is the scenario described above possible?

    Plugin Author Arnan de Gans

    (@adegans)

    Yes if you use a PHP snippet or shortcode, otherwise not really.
    https://ajdg.solutions/manuals/adrotate-manuals/show-adverts-on-your-site/

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to add a custom div around ads?’ is closed to new replies.