I’m making a theme for wordpress and I don’t know how to apply a custom set of css rules that will remain still when wordpress will get updated.
Is there any way that I can apply a css file using functions.php from my theme?
Thank you!
Leave a Reply
You must be logged in to post a comment.
This kind of feature doesn’t belong on
functions.php
. See: Where to put my code: plugin or functions.php?Create your own plugin and enqueue your custom CSS and Javascript files (normally, jQuery is quite useful and some nice effects can be added).
wp-content/plugins/my-plugin/my-plugin.php
wp-content/plugins/my-plugin/my-plugin.css
wp-content/plugins/my-plugin/my-plugin.js
Check all WordPress available scripts: Default_Scripts_Included_and_Registered_by_WordPress.