Start learning with our library of video tutorials taught by experts. Get started

WordPress Developer Tips: Enqueuing Styles and Scripts
Illustration by John Hersey

WordPress Developer Tips: Enqueuing Styles and Scripts

with Morten Rand-Hendriksen

Video: Welcome

Hi, I'm Morten Rand-Hendriksen, Staff Author at Lynda.com and I would

Watch this entire course now —plus get access to every course in the library. Each course includes high-quality videos taught by expert instructors.

Become a member
please wait ...
WordPress Developer Tips: Enqueuing Styles and Scripts
38m 31s Advanced Jul 22, 2014

Viewers: in countries Watching now:

There's a right way and a wrong way to add style sheets and JavaScript libraries and scripts to your WordPress themes. The right way takes advantage of the WordPress enqueue system, which prevents script and style conflicts. In this installment of WordPress Developer Tips, staff author Morten Rand-Hendriksen introduces the two main functions for enqueuing: wp_enqueue_style() and wp_enqueue_script(0). He'll show how the functions work and how to adjust their parameters, as well as theoretical and practical examples of implementing them in themes. This course uses Simone, a theme developed especially for Morten's WordPress: Building Themes from Scratch Using Underscores course, but you can use any theme or subtheme that you'd like.

Subjects:
Web CMS Blogs Web Design Web Development
Software:
WordPress
Author:
Morten Rand-Hendriksen

Welcome

Hi, I'm Morten Rand-Hendriksen, Staff Author at Lynda.com and I would like to welcome you to WordPress Developer Tips: Enqueuing Styles and Scripts. In this course, I'll show you how to add style sheets, JavaScript libraries, and custom JavaScripts to your WordPress themes the right way by enqueuing them. We'll focus on the two main functions for enqueuing content; wp_enqueue_style and wp_enqueue_script.

And I'll show you how each of these functions work, what their parameters are, and how you can apply them to your theme right now. This is a theoretical course that provides best practice techniques. Through the course, I'll provide you with both theoretical and practical examples of how to implement style sheets and scripts in an actual theme. I'll be using the Simone theme that was developed in the WordPress developing themes from scratch with underscores course, from the Lynda.com library. And you can follow along using either Simone or any other theme or child theme of your choice.

The ability to conditionally enqueue style sheets and scripts in your theme, is one of the features that makes WordPress as powerful as it is, and I'm excited to show you how to do it right. So let's get cracking with WordPress Developer Tips: Enqueuing Styles and Scripts.

There are currently no FAQs about WordPress Developer Tips: Enqueuing Styles and Scripts.

 
Share a link to this course

What are exercise files?

Exercise files are the same files the author uses in the course. Save time by downloading the author's files instead of setting up your own files, and learn by following along with the instructor.

Can I take this course without the exercise files?

Yes! If you decide you would like the exercise files later, you can upgrade to a premium account any time.

Become a member Download sample files See plans and pricing

Please wait... please wait ...
Upgrade to get access to exercise files.

Exercise files video

How to use exercise files.

Learn by watching, listening, and doing, Exercise files are the same files the author uses in the course, so you can download them and follow along Premium memberships include access to all exercise files in the library.


Exercise files

Exercise files video

How to use exercise files.

For additional information on downloading and using exercise files, watch our instructional video or read the instructions in the FAQ .

This course includes free exercise files, so you can practice while you watch the course. To access all the exercise files in our library, become a Premium Member.

Are you sure you want to mark all the videos in this course as unwatched?

This will not affect your course history, your reports, or your certificates of completion for this course.


Mark all as unwatched Cancel

Congratulations

You have completed WordPress Developer Tips: Enqueuing Styles and Scripts.

Return to your organization's learning portal to continue training, or close this page.


OK
Become a member to add this course to a playlist

Join today and get unlimited access to the entire library of video courses—and create as many playlists as you like.

Get started

Already a member ?

Become a member to like this course.

Join today and get unlimited access to the entire library of video courses.

Get started

Already a member?

Exercise files

Learn by watching, listening, and doing! Exercise files are the same files the author uses in the course, so you can download them and follow along. Exercise files are available with all Premium memberships. Learn more

Get started

Already a Premium member?

Exercise files video

How to use exercise files.

Ask a question

Thanks for contacting us.
You’ll hear from our Customer Service team within 24 hours.

Please enter the text shown below:

The classic layout automatically defaults to the latest Flash Player.

To choose a different player, hold the cursor over your name at the top right of any lynda.com page and choose Site preferences from the dropdown menu.

Continue to classic layout Stay on new layout
Exercise files

Access exercise files from a button right under the course name.

Mark videos as unwatched

Remove icons showing you already watched videos if you want to start over.

Control your viewing experience

Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.

Interactive transcripts

Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.

Are you sure you want to delete this note?

No

Your file was successfully uploaded.

Thanks for signing up.

We’ll send you a confirmation email shortly.


Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked
Terms and conditions of use

We've updated our terms and conditions (now called terms of service).Go
Review and accept our updated terms of service.