Tag: Javascript
How to Properly Modify JavaScript Files in a Parent Theme

I recently needed to modify a JavaScript file in a WordPress parent theme. The script was doing almost what I wanted, but not quite, so I wanted to make minor changes. In your case, you might want to entirely override a parent theme JavaScript file in your child theme, or even deactivate a parent theme JavaScript file altogether.
The Four Languages You Must Know to Understand WordPress

Learning WordPress development starts with a lot of key questions, including this one: “What language is WordPress written in?” Another common one is “Should I learn PHP or JavaScript first?” WordPress programming languages is a big topic, but we’ll cover all you need to get started.
How to Include JavaScript Files on Your WordPress Site with wp_enqueue_script()

Want to know how to include a JavaScript file onto your WordPress site? Here, we explain and demo an awesome WordPress function called wp_enqueue_script() that is the correct way to include JavaScript files in WordPress.
Free JavaScript for WP Conference on Friday! David’s Speaking

What’s better than an online conference with some of the best speakers in WordPress? I’ll get there in a second. Here are the schedule elements that caught my eye:
How to Use WordPress’s Iris Colorpicker on the Front End

I learned a few things today: first, that WordPress has a built-in colorpicker called Iris, and second, that you can use it on the front end of your website if you need custom colorpicker functionality.
Why Use PHP in 2018

Over on Thoughtful Code, I wrote about why even in 2018 I’d choose PHP to make a new software application in. The heart of my reasoning is the conclusion:
Minify CSS and JS with Autoptimize

A common piece of advice when it comes to optimizing the browser performance of your website is to concatenate and minify your CSS and JavaScript. There are many reasons and place you’ll see this recommended but Google PageSpeed Insights was the one that spurred me to action. And for me, I settled on a WordPress plugin called “Autoptimize” to make it easier for me to do it on this site. Autoptimize, if it’s not obvious, is a combination of the words “automatic” and “optimize”, and that’s just what it is, easy optimization of thing that are hard for non-developers to do.
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.
Comparison of JavaScript Frameworks for WordPress at Post Status
Recently at the essential Post Status podcast, the essential JavaScript educator Zac Gordon sat down with Brian KrogsgardĀ to compare JavaScript frameworks and libraries in a WordPress context.
The JavaScript for WordPress Master Course with Zac Gordon

It’s a big week in WordPress education: we just launched the Second Edition of Up and Running, which is awesome, and Zac Gordon is accepting enrollees for his JavaScript for WordPress Master Course.