This forum is for assistance with theme development.

twig-template translation

Hi,

i wan't to translate a page, where the content is written in a template-file: page--node--id.html.twig.
I'll need to create pages with own ID's to do that?
Or is it possible to copy templates like "page--node--language--id.html.twig"?

If i write one page per language it applies links in all language menues.

Cheers
Steve

Get current language in block

There is a twig file named link--language-block.html.twig and I'd like to get current language in there.

In front page (page--front.html.twig) it can be done using {{ language.name }} . But, it doesn't work for link block.

I also tried to use the following code:

Questions about Parallax configuration

Hi there!

Does anyone know where in the configuration menu I go, in order to edit the parallax background?
I see that there are modules for the parallax, but I didn't think I'd need to implement one (because the theme I'm using already has a default parallax background).

I'm using Drupal Core 7.44.

Drupal theme responsive problem in mobile devices/toggle

Drupal theme - Flat Zymphonies Theme, I have one problem with this theme, it is impossible to switch to mobile resposnive in mobile devices/view. Responsive works good when you change a width in browser but after switch to mobile toggle return to normal no responsive style. There is a live demo of this theme.

Any ideas to fix it?

Display same menu twice with different attributes

Is there a way to display the same menu (main) twice on a page but have different classes for each. I have a template that I am converting to a custom theme and the mobile menu is basically the same menu but wrapped in a different nav and has different classes. What I did at first was create a mobile menu that was the same as the main in structure and styled it the way that the template did it, but every time I added a link to the main I had to manually add a link to the mobile menu as well. Would appreciate any thoughts on this. I am working with Drupal 8.

Thanks,
Brad

Pages

Subscribe with RSS Subscribe to RSS - Theme development