Menu

WordPress Tutorials

A curated resource for learning WordPress

Menu
  • Home
  • Gutenberg
  • WordPress Development
    • REST API
    • Hooks & Filters
  • WordPress Basics
  • WordPress Performance
  • WordPress Tutorials
    • Genesis
  • Contact
Browse: Home → How to Conditionally Enqueue a JavaScript File in WordPress

How to Conditionally Enqueue a JavaScript File in WordPress

Enqueuing is the WordPress way to add a stylesheet or JavaScript file on a page. We already published a Quick Guide about including your JavaScript in WordPress. This time, though, we’re adding an extra wrinkle: how do you only enqueue a JavaScript file on certain pages of your WordPress site. That’s the focus of this here Quick Guide.

Read Full Tutorial
Share on Facebook
Facebook
Tweet about this on Twitter
Twitter
Share on LinkedIn
Linkedin
May 25, 2017 WordPress Development WP Shout
Previous Previous Post

How to Improve the Performance of Your WordPress Theme

Next Next Post

A Deep Dive Into the GTmetrix Speed Test Tool

Copyright © 2016 WordPress Tutorials & more!

Powered by WordPress and Neutro