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.
Is there a way to remove highlights, headers, etc., from pages other than the main page? I don't have a ton of familiarity with CSS and the like.
Comments
Comment #2
leopathu CreditAttribution: leopathu as a volunteer and commentedHi,
Just copy the page.html.twig file and rename it as page--front.html.twig and place that in the same location.
Then you could edit whatever in page.html.twig it would not affect front page of the site.
FYI : Instead of editing css / template files just place block only for front page only in that highlight and header region. There is configuration for block visibility in block configuration page. Just make it as Front page only.
I hope, it would solve your issues :)
Comment #3
BhumikaVarshney CreditAttribution: BhumikaVarshney as a volunteer and at OpenSense Labs commentedYes, by overriding the page.html.twig for front page and removing the regions from page.html.twig .
Will solve the issue without affecting the front page twig.
Comment #4
Gauravvvv CreditAttribution: Gauravvvv at OpenSense Labs for Drupal India Association commented