This forum is for assistance with theme development.

Last articles on home page

Hello everyone !

I'm quite new to Drupal 8 and Drupal in general and I'm stuck at some point on a website for a client.

I created a global layout with a custom theme I coded myself, and added a custom content type for the home page. I have almost exactly what I want except for :

Paragraph Module theming

Hi,

I am trying to create a template for a paragraph type name is "hero Image". I have added three images in this paragraphs type.
create a new template for this type. template name is "paragraph--hero_image.html.twig"

When I render the page its rendering whole template code three time. I would like to add a wrapper div/class above this template render. How can achieve this.
here is the template code

FILE NAME IS- paragraph--hero_image.html.twig

How to add a shopify buy button?

Hi,

Have created a shopify store where we need to add a buy button to the original Drupal site.

I've been away from Drupal for 3 years and am lost. Can I ask for some direction?

Thank you!

Here's the code:

/**/

align images horizontally

Hello
stupid of me, I don't know how to align images on same line. I mean images with field image as in that example :
http://neralala.info/node/178 (mayo)
I know I must change something in CSS, but in that case, what code must I add at the end of style.css to have them aligned?
The name of the field is "mesimages".
I tried

How to manipulate data in theme code?

Hello,

I'm a seasoned D7 developer, and new to D8, but after searching online for quite some time and pouring through the debugger variable values, I cannot find a clear method to manipulate data to pass to a twig template.

Get the parent taxonomy term name in node.html.twig

I have a vocabular with a nested taxonomy tree. I know, I can print the last term name via:

{{ content.field_taxonomy[0]["#title"] }}.

But some terms have a parent term. How can I get the parent-term-name in my twig-template?

Thank you.

Pages

Subscribe with RSS Subscribe to RSS - Theme development