![]() ![]() ![]() So I decided to dequeue the css files I'm not using in my child theme's functions.php and dequeue the css files which I'm only partially using, replacing them with a 'cleaned-up' version of the file. Essentially, you will create a function that will enqueue all of your scripts and styles. So WordPress doesn't have a parameter for doing this in the wpenqueuestyle function, because traditionally all styles were added in the head. I use Elementor to build my website and there are a lot of functionalities that I'm not using but are none the less loaded on every page of my website. Adding scripts and styles to WordPress is a fairly simple process. wpregisterstyle() wp-includes/: Registers a CSS stylesheet. 1 Answer Sorted by: 40 Actually all styles should be placed in header. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |