This forum is for assistance with theme development.

Allow HTML entities in node titles

Hi,

Does anyone know how to allow HTML entities for node titles in Drupal 8? I'd like to be able to use soft-hyphens.

how can drupal_render print html code?

Hi guys

first of all, I'm new at Drupal, I tried to understand the apis but until now I find a lot of difficulties.

I want to modify on free theme that I downloaded it from the internet, for now I want to change the navbar menu structure.

but I see that drupal_render($page['navigation']) is printing the html, no way to change the html this way unless if I will make it hard code (static not dynamic!)

sorry for this question, but who tells the drupal_render($page['navigation']) to be printed in this way?

How to add condition for 1st Iteration in views-view-fields.html.twig file

I am trying to implement a carousel , inside my views-view-fields--block_1.html.twig , I want to add  active class inside the div for the first Iteration . I have added the code in twig file but every time it is adding active class for all the iteration. In my view title,body,image and result counter fields are there . From result counter i am getting the value and comparing inside the above twig file. Can anyone give suggestion, how to achieve this . Here is the code snippet.

Templating Beans

Hey all!

So I've got my new bean block-type, Hero Video. I created bean--hero-video.tpl.php and all is well, I've got the output I want for the actual content, but I wanted to create a specifically different block template for that bean type so I could kill some of the other code around the output.

I've got a standard block--bean.tpl.php that I've been using, but would like to further customize for this specific bean type. Something like this is what I'm talking about:

block--bean--hero-video.tpl.php

Custom page in a theme for a content type

Hi hi!

I'm creating a website for an animal rescue using Drupal 8. I'm a developer but I don't have experience with Drupal so I've been following some online courses and now I understand it way better, but I still have lots of problems with the theming part. 

I would like to have a base template like this one (I've this one installed) but I don't get it at all how to customize it: https://www.drupal.org/project/drupal8_parallax_theme  

How can I run PHP code for every article page on drupal8 without writing a module

Thanks in advance. 

In drupal8, 

How can I run PHP code for every article page without writing a module ?

Pages

Subscribe with RSS Subscribe to RSS - Theme development