For assistance with theme development.

displaying the title of the subpage

I would like to add to the skin so that the name of the subpage is displayed in a given place, but I do not work?

<div id="name">
	<div class="layout-container">
		<h2>{{ title }}</h2>
		</div>
</div>

Sub-theme CSS loading first when there is a sub-sub-theme

I have a base theme. I have a sub-theme. I have a sub-sub-theme.

On sites that have the base theme and sub-theme, the css loads in the correct order: base theme > sub-theme.

On sites that have the base theme, sub-theme, and a sub-sub-theme the css loads in the wrong order: sub-theme > base theme > sub-sub-theme.

I need the order to be: base theme > sub-theme > sub-sub-theme.

All three .libraries.yml files look like this:

One content type multiple nodes

Hello everybody.

I have one content type and 3 nodes that use it. I want all of them three  to have the same tweet template. How can I achieve that?

Theming software

I know this might be a silly question but is there some theming software for Drupal 8?

I know Artisteer 4.x but it does not support Drupal 8 very well and TemplateToaster is completely unsatisfying.

[solved] html.html.twig for contenttyp

hello,

i need a special html.html.twig for one of my contenttyps.

if i debugg twigtemplates (like here) i only find names for the file for node (html--node--nodeid.html.twig) but not for a contenttyp.

also in the twig theming conventions (like here) are no idea.

perhaps someone can help me understand, what filename will be good?

thanks.

stefan

How do I import a macro into a template?

Hello,

I created a macro that I want to use (hence import) into a template. I have looked at countless tutorials but none of them seem to help and my macro is not being imported.

This is my folder structure:

-/templates
  -/partials
    header.html.twig
  -/regions
    region--header.html.twig

I would like to import the 'header.html.twig' file (which contains the macro) into 'region--header.html.twig'.

This is the content of the 'header.html.twig' file (which I want to import):

Pages

Subscribe with RSS Subscribe to RSS - Theme development