• Resolved Klaus Wilde

    (@klwild)


    Hello everyone

    I’m working in the free version of header and footer code and am satisfied.

    But now something strange happened.

    When I enter “[the_ad_group id=”364″]” in the BODY code and save, the “” is gone after saving and the ad is right-aligned, which looks pretty bad.

    What’s the problem. I mean, I had always done it that way before.

    Kind regards, Klaus Wilde

    Head&Footer-Code1.png
    Head&Footer-Code2.png

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Aleksandar Urošević

    (@urkekg)

    Hello @klwild,

    Thank you for choosing Head & Footer Code for your project.

    The shortcode gets processed and rendered, although the HTML tag <center> gets stripped out on save.

    The reason: Since 1.5.0 Head & Footer Code 1.5.0 we rely on the WordPress core HTML filtering (KSES), which do not allow deprecated tag CENTER https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/center

    The solution: I would recommend you update alignment in your ad manager, rather than doing it wrong with extra wrapper.
    If you use Advanced Ads plugin: Advanced Ads > Ads > Edit desired ad > Layout / Output > Text Flow > Block > select center alignment.

    Hope this will help you to keep your code snippets clean and properly configured utility plugins.

    Kind regards,
    Aleksandar

    Thread Starter Klaus Wilde

    (@klwild)

    YEAH. Thanks. It works!

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.