R
R
Rostislav2017-03-30 18:46:22
css
Rostislav, 2017-03-30 18:46:22

Is it possible in Wordpress to merge css files into one file on the fly?

I don't know what it's called correctly. The site was made up by "modules", that is, each functional block is placed in a separate file (like header.php), each block has its own css file (header.css, etc.).
With this approach, it is easy to duplicate / move almost any block to another page by including only 2 files (php and css).
But on some pages, the number of included css files reaches 10-15 pieces.
Is it possible to combine these files on the fly using WP tools, for example, in style.css, and then include them?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim Timofeev, 2017-03-30
@webinar

https://habrahabr.ru/post/309214/
https://ahmadawais.com/my-advanced-gulp-workflow-f...
https://yandex.ru/search/?text=wp%20gulp&lr=13&cli ...

R
Roman, 2017-03-30
@llgruff

What caching plugin are you using?
It seems that in WP Total Cache you can check the box "combine styles and scripts into one file".
those. without changing the styles connection in your theme's functions.php

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question