This forum is for assistance with theme development.

Aligning text in CKEditor, best practices

Say I have a site and a theme that uses Paragraphs for content creation. I have a basic "Text"-paragraph for inserting formatted text to a node. Sometimes the text needs to be aligned left and sometimes center.

Because most of the text is aligned left, I'd use some sort of option to align it center when needed. For this I have many options to go with:

Create a module that display calendar

How we create a Module that display the calendar according to the events in drupal?

Basic page address in dupal template

Hello guys 

I want to active google analytics and for some reasons i couldn't install module for that and also i dnt know drupal structure  

what is the basic page address so i copy and paste google analytics code in the header?

How to iterate image field having multiple images in in views-view-fields.view-machine-name.html.twig?

Hi,

I have a field for slider images, I want iterate all images in views-view-fields--view-machine-name.html.twig, currently I am only able access raw html using {{ field.content }}.

I tried following, but no luck!:

{{ field.items }}
{{ field['#items'].list }}

See screenshot here https://prnt.sc/v2654o, getting empty list.

Thanks

Help with jquery theme

good evening I have a theme that I am developing for a website but I have 2 problems with the jquery library

  • when I activate the library in the theme, the administration menu stops being fixed at the top.
  • when I activate the jquery a query stops showing me the information.

Some of you have had the same thing and if you know how to solve it my version of drupal is 8.9 Thanks for the help in advance.

How to access display view footer & header in views-view-fields.view-machine-name.html.twig?

Hi,

I am trying to access Header and Footer of my custom views-view-fields.view-machine-name.html.twig file, I am able to access the fields of view but I don't know how to access Header & Footer of view there. 

I can see that there is view variable available in the .twig file, But, I don't know how access the Footer & Header areas there. I tried debug this using Devel Kint, Kint breaks the page execution.

Pages

Subscribe with RSS Subscribe to RSS - Theme development