This forum is for assistance with theme development.

Problem with a twig file, converting a Drupal 7 theme to 9

Hi, I'm converting a Drupal 7 site to Drupal 9. It's a fairly simple theme and I've managed to install the theme in Drupal 9. However on going to the site, I recieve this error:

The website encountered an unexpected error. Please try again later.

Twig\Error\SyntaxError: Unexpected token "name" of value "aktiver_link" ("end of statement block" expected). in Twig\TokenStream->expect() (line 8 of themes/mysite/templates/page.html.twig).

Theme node deleted

Hi,

I created a new theme project called "Portfolio theme explore" but it looks like the node has been deleted thinking "it is spam or something"

If you log in, you can find it from here

https://www.drupal.org/project/portfolio_theme_explore

Would someone please help and undo the node deletion?

I wanted to make a release and update few things.

Looking forward to your response

Theme development

I accidentally deleted my default frontpage view I was using on a Drupal 9 site, and I can't find how to either recreate it or which path to set on a new view to have it as front page.

How can I achieve this?

Sub-Theme CSS specificity issues

Hello,

I'm building my own sub-theme to re-brand an installed theme. Mostly, this is working well, but I'm running into issues were my compiled (sub-theme) CSS cannot overwrite the main theme.

It was my understanding that if I copied the main theme's CSS file and put it in my root-sub-theme's CSS directory, that when the theme loads, Drupal loads my changes over that of the theme's... meaning, that it would take my altered file with the same name over that of the main theme.

Custom Theme Not Showing Up in Drupal 9

This is my first time creating a Drupal custom theme, and I'm having a problem getting it to show up.  Here is what I have currently:

Unable to get product url alias in Twig

Hi everyone,

I'm completely unable to retrieve a url alias in a view Twig.

I tried different solutions including the Path function of the Twig helpers but it doesn't seem to be designed to deal with products...

Pages

Subscribe with RSS Subscribe to RSS - Theme development