This forum is for assistance with theme development.

Problem exposing variables via TWIG node

So I have a content type which is also an Ubercart product.
On my home development site I have made exactly the same content type and have used a TWIG template to layout the variables as I want them with some other divisions I require on the page.
On my production page (on public server) is behaving differently.
The 'label' variable does show though the shirt images do not though they do if I just use the standard node twig file. So the new node layout with the heading appears though no pictures or the add to cart button or attributes selections.

Template overriding not working...

Having twig debug mode enabled; Am trying to override the template file of node type "article"Image 1
I had done the changes and added the file as per theme suggestion in my own custom theme but the changes are not reflecting (it is still taking template file from my base theme); I had rebuild the cache after doing changes.
Image 2
Any suggestion where am going wrong

Display multiple image of a field in content / node in grid view

Hello,

I'm working on a website using Drupal 8 with Gavias Sandbro theme. Currently I want to make photo album. I have a content with image field that supports multiple images to be loaded working together with colorbox. Unfortunately the image is displayed in vertical views which I want to be in grid view, I already refer to this post and try to add custom css but didn't work likely because of different version of drupal.

The source output is as follow:

Print individual fields from Node Reference field in node template - Drupal 7

I've done a lot of googling and can't figure out how to do this.

I have a content type, Course, which uses a node reference field to pull in another content type, Faculty. We are using custom node templates for each of these content types.

Translate static content

In my site there are lot of static content such as section headers and random content. I want to translate them.

Can I translate with them {% trans %}my content{% endtrans %} in twig?

If yes, where to insert the translations in the backend?

Question about business theme

Hello.I am using the business theme https://www.drupal.org/project/business for a client.The problem with that isn't responsive.Firstly, my client didn't care if the theme is mobile-friendly but now he does :p. So the question of my client is: Is there a module or something that converts the specific theme to responsive? Or I have to do it with css etc? He probably asks this to save some money instead of paying more to make his site responsive :p

Thanks.

Pages

Subscribe with RSS Subscribe to RSS - Theme development