• Resolved Marcoevich

    (@marcoevich)


    Hi, I need to add a global script for the SumoMe plugin. The script already includes script tags, like this:

    <script src="//load.sumome.com/" data-sumo-site-id="***" async="async"></script>

    Your plugin seems to force script tags for globally entered scripts (so I end up with double script tags), so I need to use another plugin to embed this script in the head.

    Could you make an option to insert this script, without enforcing the script tags around it? Would love to just use only your plugin since I already have it a long time.

Viewing 4 replies - 1 through 4 (of 4 total)
  • I have a similar request. I really love this plugin, but would prefer not to have the script tags already included.

    In my case, I want to load a tag with <noscript> in the body, but am unable to do so. Bummer because I actually prefer everything else about this plugin over other implementations. Would love for you to consider an option for scenarios like this.

    Thanks!

    I’m looking for the same functionality as well.
    Great plug-in otherwise!

    Plugin Author WraithKenny

    (@wraithkenny)

    There is a way to do this anywhere where there is shortcode support (Post editor, Widgets etc). In global settings, it’s called “Hoops” and you can write arbitrary HMTL and it gives you a shortcode. Then you put the short code in a post or widget.

    I am going to extend 4.0 to allow arbitrary head and footer content, but no ETA on that.

    I don’t get it. So if I want to add this adsense code in head of all pages

    <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
    <script>
      (adsbygoogle = window.adsbygoogle || []).push({
        google_ad_client: "ca-pub-XXX",
        enable_page_level_ads: true
      });
    </script>

    How I would do with hoops?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Insert scripts without automatic script tag’ is closed to new replies.