• Resolved Johnathan

    (@jelyman)


    After doing some debugging with my HappyForms contact form installation, I discovered that the CSS <link> tags the plugin injects into the beginning of the_content() for pages where a HF form is embedded (and the form’s native styles are used, instead of using theme styles) are eliminated or prevented from being injected when Slim SEO is active.

    In reproducing this, I noticed manually adding <link> tags into the post content as an HTML block before the HF shortcode in a post allows them to persist (in other words, Slim SEO doesn’t remove them or prevent their injection).

    As a follow up–and something I didn’t originally think to ask them until just now as I wrote this–is if the <link> tags are embedded with the form or if the plugin injects them after the form is embedded via its shortcode. I’ll update when I get an answer on this.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Anh Tran

    (@rilwis)

    Hi Johnathan, thanks for the details. I’ll check that and will remove all <link> tags.

    Thread Starter Johnathan

    (@jelyman)

    Here’s what the HappyForms devs told me:

    HappyForms uses WordPress action hooks to render those link tags on your website. So the moment your form is added, which essentially is a shortcode, it calls various actions. One of those actions is used to append link tags just above the form. It all happens on render time, so the action and actual print of link tags in the code is not any delayed if that’s what you ask.

    Thread Starter Johnathan

    (@jelyman)

    Hi Anh,

    I should also clarify that HappyForms is injecting the <link> tags, and Slim SEO is removing them, not the other way around.

    Plugin Author Anh Tran

    (@rilwis)

    Hi Jonathan, I’ve fixed this bug here. New version is coming.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Plugin removes ‘link’ tags placed by HappyForms’ is closed to new replies.