Force jQuery in Head – Script Manager

By Jagdish Sarma

★ 5.0/5 (1 ratings)100+ active installationsVersion 1.1.0

Load jQuery in the head, choose its source, and add custom scripts to the header, footer, specific pages or via shortcode.

Description

Activate it and jQuery loads in the head automatically, as before. Since 1.1.0 you can also:

  • Choose jQuery source: WordPress bundled, CDN (Google, cdnjs, jsDelivr, jQuery) or custom URL, with optional SRI
  • Remove jQuery Migrate
  • Exclude pages by ID, slug or path, or skip logged-in users
  • Add custom JavaScript, CSS or HTML (with a syntax-highlighted code editor) to the header or footer
  • Choose pages with a searchable multi-select: all pages, only selected, or all except selected (pages, posts, slugs, paths or Home)
  • Set a priority to control the print order of your scripts
  • Output a script anywhere with the shortcode [fjih_script id=”1″]
  • Turn off jQuery management entirely and use only the Custom Scripts module

Installation

  1. Upload the plugin folder to /wp-content/plugins/ or install it from the Plugins screen.
  2. Activate it. jQuery is moved to the head automatically.
  3. Optional: go to Settings > Force jQuery for more options.

Screenshots

Changelog

1.1.0

  • New settings page (Settings > Force jQuery)
  • New jQuery source, Migrate and exclusion options
  • New Custom Scripts manager: JavaScript, CSS and HTML snippets with a code editor
  • Searchable multi-select page picker for script rules and jQuery exclusions
  • Redesigned admin interface
  • Priority for custom scripts (lower prints first)
  • Master switch to turn off all jQuery changes and use only Custom Scripts
  • Plugin code reorganised into includes/ and admin/ folders
  • Default behaviour unchanged for existing installs

1.0.4

  • Previous release