This forum is for assistance with theme development.

How can I add custom classes to each view's generated row?

Is it possible by using the theme preprocessor add some classes to views generated rows?

For example: based on Drupal site about default theme implementation to display a view of unformatted rows.
views-view-unformatted.html.twig:

Drupal 8 separate pages for separate taxonomy terms

I have two taxonomies. I want different page templates for each taxonomy term page. Lets call the taxonomies as taxonomy_one and taxonomy_two.

When I go to taxonomy term twig debug suggests following names:

How to add attributes (data-uk-lightbox) to link to images

Drupal 8.3
Im sorry for my bad English.
I created a image field (unlimited). In my content type -> Manage display, i chose, Link image to file. And the photos are opened in a new window. How do add this (data-uk-lightbox) attribute to the link?

<a href="path" data-uk-lightbox title="">

Thanks in advance!!!

Where is the <ul> for the menu-local-actions list?

I'm theming the Forum module which comes with Drupal 8, and I've found something that seems odd.

The 'Add new Forum topic' link is wrapped in an li as expected, but that li is NOT contained in a ul. I see that the li and its link are being displayed from menu-local-action.html.twig. But that's nestled inside block.html.twig, and the block is just the Main page content system block.

This is DIFFERENT than the way menu-local-task.html.twig and menu-local-tasks.html.twig work.

This li needs a ul (and probably a nav) but where is that supposed to go?

Theme version

Hi :-)

Would I be able to use a theme made for Drupal 7.4 on a 7.56 Drupal version?

Add classes to Book links

I would like to add classes directly to the a element for the "Add child page" and "Printer-friendly version" links in the Book module that comes with Drupal 8.

Pages

Subscribe with RSS Subscribe to RSS - Theme development