This forum is for assistance with theme development.

Bought theme, frontpage different header/footer

Morning people :-)

I have recently bought a theme that I really like with a lot of cool features.

I has different headers and footers I can choose among and a lot of different layout styles. And I have a styleswitcher on the frontpage to look at all the different ones. That I have deactivated when I found the ones I wanted to use.

I have installed the theme and it works like a charm, except that the frontpage won't use the same header and footer as the rest og the pages.

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?

Pages

Subscribe with RSS Subscribe to RSS - Theme development