• Skip to main content
  • What We Do
  • Our Work
  • Contact

Mackey

Disqus Plugin for WordPress injecting script as plain text

September 22, 2014 by Mackey

Disqus Plugin for WordPress injecting script as plain text

We were recently having an issue with a slider on one of our clients sites.  We are using the BX Slider jQuery plugin in conjunction with Custom Post Types.  We created a Custom Post Type for homepage sliders and each image was added using the featured image and classified as a single post.  We then called each of these post types into the homepage (ie get_posts) and displaying them in an unordered list.  Problem we found was that the Disqus plugin was injecting scripts into the generated BX Slider code, even though comments were turned off for the custom post types.

Anyway, the fix was pretty simple and straightforward.

From the WordPress Dashboard click on Plugins then find Disqus Plugin and click on Settings.  Toward the bottom of the Settings page find “Patches” and check next to Template Conflicts; “Output Javascript in Footer” — bam fixed!

Disqus_‹_—_WordPress

Filed Under: Uncategorized

Mackey Creative Lab
Web Design and Development, Branding, Graphic Design and Marketing Strategy
680 East Colorado Blvd., Suite 180 & Second Floor, Pasadena, CA 91101
info@mackeycreativelab.com // 626 214 5093
© 2014-2021 Mackey, LLC, All Rights Reserved

Want to join the Lab? Become a lab partner

Need Wordpress Performance & Security Management? Learn More