There might be times when you want to load certain assets like JS and CSS files on your site and you do not or can not use a child theme.

While there are plugins in the WordPress repository for loading files in the head or footer, the problem is they do not offer a way to restrict the loading to certain pages of the site.

This is where a custom functionality plugin comes in handy.

Here is a basic plugin that you could use as a starting point for loading assets in WordPress:

My Custom Functionality

(Mirror on GitLab)

Need help implementing a tutorial in your site or want to hire me for custom work?


Find the article helpful and wish to donate?



You need to be logged in to view and post comments.
Not a member yet? Join here.
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram
%d bloggers like this: