This forum is for assistance with theme development.

How to assign blocks to particular regions on theme install in Drupal 8?

I'm creating a new custom theme for Drupal8, based on classy theme
I have 4 regions in MY_THEME

regions:
       header: 'Header'
       content: 'Content'
       footer: 'Footer'
       hidden_block: 'Hidden Blocks'

I don't need some blocks, such as Search, Powered by Drupal, Footer menu, User account menu and etc. I use region 'Hidden blocks' to place unused blocks into it. I saw this method in drupal8_zymphonies_theme.

Overwriting Page--type is not working

Hello guys, recently i'm working with Drupal 8 to develop my page.
But then i struggle on how to overwrite the page--(type).

I've been doing it with Drupal 7 and it works just easy just by creating a file that named page--(type).tpl.php
BUt then in drupal 8 i follow this (https://www.drupal.org/node/2521876) and it still not working.

Where do I write the css code for the Block Class module

Hi

I am new to Drupal and CSS. I want to put a border around one block. I have installed the block class module & defined a css class. I am using the Adaptive theme so have tried writing the class into mysubtheme/css/global.styles.css. But nothing seems to work. I can get a border around all the blocks, but not the one I have defined the css class for. Please can someone advise on where to put the code and what the code should contain.

All I have go so far is outline-style: groove; outline-color: blue; outline-width: thin;

Many thanks

Check in page.html.twig fpr certain content type

Hi,

Is it possible to check in page.html.twig if a certain content type is displayed, and the change the Layout? For example display a picture instead of a title? And maybe skip the breadcrumb? On http://roerstreekmuseum.nl/d8/vereniging/werkgroep/genealogie/werkgroep-... I want to skip the title and breadcrumb.

Thnx,
Fred

submenu links 4th level not displayed w Pixture Reloaded

I have a problem with main navigation submenu links (4th level) not displaying in a Drupal 8 site, with Pixture Reloaded theme (main navigation menu, 4th link "Η περιοχή της Οχης", 2nd submenu link "Η φύση της Όχης", the 1st and 6th submenu links, ie, "Φαράγγια" and "Μονοπάτια" have children submenu links that are not displayed).

All settings are correct (related block menu levels is set to unlimited), all parent menus are set to expanded, parent links are correctly set.

Passing variable from a page to another.

Hi everyone,

i have a content type foo with 4 entries, when im on the detail page of foo_1 for exemple i have a link in my template to go to the contact form, how can i add a variable to this link like href="/contact?foo=foo_1 then get it in my contact form to know where it came from ?

Thanks in advance for the help :)

Pages

Subscribe with RSS Subscribe to RSS - Theme development