• Resolved samjansen97

    (@samjansen97)


    I use now codes like this to shwo ads on mobile:

    <!-- CSS Code -->
    <style type="text/css" scoped>
    img.GeneratedImage {
    width:330px;height:180px;margin:0px;border-width:3px;border-color:#000000;border-style:solid;
    }
    </style>
    
    <!-- HTML Code -->
    <a href="https://www.tes23t23.nl/" target="_self"><img src="https://www.revive.nl/wp-content/uploads/2021/06/adieugod.gif" alt="Adieu kerk! Adieu God?" class="GeneratedImage"></a>

    I want to switch to Advanced Ads to show the ads through that plugin. Is it possible to if you create an image ad with advances ads to give it a class. That has: border-width:3px;border-color:#000000;border-style:solid; ?

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support schmidt25

    (@schmidt25)

    Hi samjansen97,

    Thanks for reaching out.

    You can define a specific class for each ad unit. Please, see here for more information.

    Best regards,
    Joachim

    Thread Starter samjansen97

    (@samjansen97)

    Is it possible to give a class to the ad image? Because when I give the class to the ad unit/container the border is not around the ad image

    Plugin Support schmidt25

    (@schmidt25)

    Hi samjansen97,

    Sorry, I did not notice your reply.

    To change this behavior, you could use one of the following filters:

    • advanced-ads-ad-image-tag-attributes
    • advanced-ads-ad-image-tag-style
    • You can find more information about their use in the source code.

      Best regards,
      Joachim

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Border around ads mobile’ is closed to new replies.