Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
How can I make my subtheme so that it will not write the head section?
Comments
Comment #1
fubhy CreditAttribution: fubhy commenteddisable all zones in that section.
Comment #2
Skydda CreditAttribution: Skydda commentedI mean like there is html tag and there is head tag
I would like to take of all useless things in head before the ajax gets the site
Comment #3
fubhy CreditAttribution: fubhy commentedThere are no useless things in :P
Removing things from there really should be avoided. Why do you even want that? A lot of stuff is being printed into the in the html.tpl.php. Also take a look at all "html" preprocess and process hooks.
Comment #4
Skydda CreditAttribution: Skydda commentedActually most of the stuff in there is useless, I just need one div : )
So I need to edit html.tpl.php? And corresponding preprocess / process files?
Comment #5
fubhy CreditAttribution: fubhy commentedYou want a
in ?!?
Comment #6
fubhy CreditAttribution: fubhy commentedYou want a
in ?!?
Comment #7
Skydda CreditAttribution: Skydda commentedfubhy thank you for your help.
My site loads content from div tag on one of my nodes.
I have html.tpl.php on which I have conditional check if get parameter contains variable.
If it contains that parameter, it will not write unnecessary parts (mainly head tag), so that it don't have to download all of that (bandwith reasons).
This problem is now fixed