Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
I want to change the page template for the book content type.
I have tried: page--node--book.html.twig, page--book.html.twig, page-book.html.twig, page--node-book.html.twig but none of those work. What theme hook should I use? I am using Drupal 8. Thank you.
I am trying to wrap a div around a field's label using theme_field(), but it looks like my theme_field hook is not invoked for add/edit forms, but it is invoked for view form. My theme is called "maintheme". I put the following code inside template.php:
HI there, after painful fight I managed to style differently views in different blocks. Before that I couldnt manage that and all blocks used the same style and everything.
Now, I created the correct css classes and after flashing all cashes it looks as desired. But when I click on refresh the page button, I get the older look of the page, where the blocks use a different css obviously. Probably it is some css provided by Views module?
I humbly beseech the laudable drupal gurus to help me with this seemingly complex task.
As stated in other posts I am not a drupal expert NOR a programmer. We inherited this drupal site when I started in my current role and have been winging it and learning as we go since.
The main issue we would like resolved is the stack order for our page content. Our pages are not complicated but need some fine tuning.