• Resolved Brian Jackson

    (@brianleejackson)


    A lot of WordPress themes use the following for a caption box that wraps around images.

    Example.
    [caption id="attachment_xxxx" align="aligncenter" width="xxxx"]

    The issue I have is that sometimes my adsense ad will end up right below an image within the caption box. I’m assuming I need to add some dynamic clearance… Does the clearance option read HTML or just visible text? I tried entering in “caption id” but it didn’t do anything.

    Any way to drop adsense ad below caption id boxes when it detects them?

    Any suggestions? Thanks!

Viewing 1 replies (of 1 total)
  • Plugin Author Spacetime

    (@spacetime)

    Ad Inserter sees and processes HTML code (unless other shortcodes are not processed yet).

    Image caption shortcode expads to this code:

    <figure id="attachment_xxx" style="width: XXXpx" class="wp-caption aligncenter">
      <img src="xxx">
      <figcaption class="wp-caption-text">Caption</figcaption>
    </figure>

    Therefore, to avoid also images with captions you should avoid also paragraphs with figure tag.

    Another possibility is to add figure as paragraph tag and adjust paragraph number accordingly.

Viewing 1 replies (of 1 total)
  • The topic ‘Clearance – Avoid Caption ID’ is closed to new replies.