C
C
Combat72016-08-10 03:13:41
Drupal
Combat7, 2016-08-10 03:13:41

How to render styles in Drupal?

I do optimization. Drupal includes 4 or 5 css files. What to prescribe so that styles are connected directly to the code directly, and not through files? How to do it?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
A person from Kazakhstan, 2016-08-10
@LenovoId

Directly where? in html? or in css?

M
Mr Hobot, 2016-08-10
@vashaaa

Everything is done in easy breezy, open the <"style"> tag in html, here we write your css"style">. But you need to see my teacher, he will put you on the belts for this, along the way finishing off the c ++ textbook in 21 days.

A
archelon, 2016-08-10
@archelon

It seems that you set the task incorrectly or formulated the question incorrectly.
If you want the styles to be written inline in the html code, then you do not need to do this.
If you need to optimize css, then the basic features for compressing and minimizing code are in the core 7/8 (in the admin panel, the performance / performance item).
In addition, you can, for example, remove unnecessary system styles: https://friendlymachine.net/posts/how-remove-core-...

T
Tlito, 2016-08-16
@tlito

edit the html.tpl.php file of your theme (maybe in the templates folder) - if there is no file - copy it to the theme from the core - modules/system/html.tpl.php
https://api.drupal.org/api/ drupal/modules!system!h...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question