This forum is for assistance with theme development.

Ajax not working - narrowed to my theme.

Hi all, I hope this is the correct place to post my issue. I've scoured the forums and have found problems similar to mine, but I simply can't figure out what I'm missing. I've been running Drupal on our departments website for 6 years now, starting with 6 and migrating to 7 successfully.

Print title in page.html.twig in D8

It seems that page title is printed in {{ page.content }} ... How can I separate the title and the content of the page in this template file, how can I print title and content separately?

Custom body class for D8 front page

How can I properly set a class for body tag for the front page?
mytheme_preprocess_html() have an access to body attributes, but it doesn't know if the page is front.
And mytheme_preprocess_page() have is_front, but I can't set attributes in there.

stuck in creating simple template

Hi community,

i am absolutly new in Drupal and came from ModX.
My question - so simple it seems to be - is just,

how can i make an new (twig) theme from scratch with bootstrap ?
i created a new theme folder called /sly with a sly.info.yml and the following content:

Drupal 8: CSS / JS placeholders are empty

Hi,

I'm trying to make my first Drupal 8 theme and I've already hit a roadblock: A number of important placeholders are empty when rendering html.html.twig - most notably {{ head }}, {{ styles }}, {{ scripts }} and {{ scripts_bottom }} ... this makes theming a bit difficult, if you ask me ;-)

Here's my theme.info.yml:

Template suggestion and get data with dsm

Hello
I create a template suggestion block--nodeblock.tpl.php.

To generate my block, i use NodeBlock module. So i create a content with my content type NodeBlock and a block is automaticaly created.

To get and see variables i want to use in my template suggestion block--nodeblock.tpl.php, I use dsm($block).

"dsm" returns a lot of variables and i don't know how to get a variable. I'm simplifying below the tree to get the variable : "css_bck_red"

Pages

Subscribe with RSS Subscribe to RSS - Theme development