For assistance with theme development.

STICKY: Theme development forum guidelines

The theme development forum was created to aid those who are developing themes for Drupal. This forum is not for issues you may be having with contrib themes. Issues with contrib themes should be placed in the issue queue of the theme in question. Please respect this.

If you you have drupal installed already and are seeking a theme, have a question about a specific theme and what it does or if it will fit your use case, please place your questions in the Post installation forum.

Sub-theme not inheriting parent css

I posted this in the theme forum to which it applies, but I also suspect it's a larger Drupal 8 issue and not necessarily related specifically to any certain theme.

I've installed a sub-theme, according to the step-by-step instructions in the Drupal 8 documentation. I've checked multiple times that everything, including space-indentation and folder structure, is all correct, but the sub-theme is not inheriting the CSS from the parent theme.

[Solved] Placing View's Block in a Region


I learnt that by going to /admin/config/development/configuration/single/export you can export YML file along with suggested file name. If you place this YML file in another install's [CUSTOM_THEME]/config/install folder with the suggested name, your block is placed in the desired region. 

For some reason though all the blocks created by Views do not appear in /admin/config/development/configuration/single/export.

I tried to manually modify the files it generate to get the YML I needed, but it didn't work. Has anyone ever done it and is it even possible?

How do I access URLs from File Fields via Views into Twig

I have a "Our Staff" Content Type, that includes a field for uploading an individual's CV as a PDF:

The machine Name is:


I have created a View for this Content Type, which I have then added to the page via Blocks
I have a twig file that I'm using to style the Staff area:


I can render all other fields,
but I'm having trouble with the URL for the File Field

How to display since when the node was created ?

How to display since when the node was created with TWIG. Here is the templace of my node :

Adding Javascript Stats Counter to Drupal


  Can someone please advise how I can add something like this to a block on my site? Or even point me toward to a module that does the same thing. Thank you.

What I did was create a counter,js file and paste the javascript code in there and upload to the /site/all/theme_name/js directory and specify it in the file. Also copied the css file in to the css directory of the theme and also specified in the file as well.  


Subscribe with RSS Subscribe to RSS - Theme development