Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 106037

Use it for questions about rendering or modifying the HTML markup produced by a module/theme.

0 votes
0 answers
86 views

Twig templates with lots of classes?

I have created a twig template and have added classes like below. {% set title-classes = [ 'title', 'h1', ] %} {% set subtitle-classes = [ 'subtitle', 'h2', ] %} <div{{ attri …
May 's user avatar
  • 163
-1 votes
1 answer
1k views

How to load content depending on screen size without hiding using CSS?

I have a responsive site. Lots of content is hidden depending on screen size. This slows down page speed. And on slow devices has a lot of content shifting whilst content is hidden/shown. In drupal 7 …
May 's user avatar
  • 163
0 votes
0 answers
39 views

Ho can I add a class to a specific row in views-view-field template?

I have created a custom views-view-field template and added some custom html and views field similar to this <div class="{{ fields.my_text_field.content }}"> {{ fields.my_media_field.content }} </di …
May 's user avatar
  • 163
1 vote
0 answers
77 views

How to wrap select list in custom html?

I have a select list created by views exposed filters. When I debug the templates used. I have the exposed filter template, then the select list is in a seperate template. I tried just putting my html …
May 's user avatar
  • 163
0 votes
1 answer
154 views

Is it possible to render a region in a menu template?

In my Drupal 8 theme I have a template called __menu.html.twig which gets called in my page.html.twig I am trying to render a region within the __menu.html.twig where I can place blocks. I have render …
May 's user avatar
  • 163
0 votes
4 answers
1k views

How do I add HTML markup to the title?

I am trying to alter my title to include html. I have tried the following function MODULENAME_views_pre_render(\Drupal\views\ViewExecutable $view) { if ($view->id() == 'products_test') { foreach …
May 's user avatar
  • 163