This forum is for assistance with theme development.

What theme hook should I use for the book content type?

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.

D8 - trying to create subtheme of bootstrap - theme not being recognized

I have done some D7 subtheming, but D8 is not recognizing the subtheme.

Bootstrap theme is installed.

Subtheme directory named:

fate_bootstrap_subtheme

yaml file is named:

fate_bootstrap_subtheme.info.yaml

The starting code in the yaml file is as follows:

theme_field() is not invoked for add/edit forms

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:

drupal seems to use different CSS after flushing cash, refresh and flushing cash again

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?

Change Stack order for Content & Sidebar Second Blocks

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.

Styling a Ctools Modal Pop-up

I would like some help to style a Ctools modal pop-up. I have added a theme and views template but it has no effect so it looks as though I am missing some fundamental point.

Here is a picture of the default style and the styled box, as per the article above.

You can see the pop-up in its current state here. Just click the link on the single Views record.

Pages

Subscribe with RSS Subscribe to RSS - Theme development