This forum is for assistance with theme development.

drop-down list misplaced

Greetings to all. I happen to be a front end of a website, and I have the problem and that is a field with drop-down list, this is misplaced and displayed in the wrong place. I would like to know who can guide me in solving it.  In the url below, I share the images

1- text box

https://prnt.sc/njmt5r

2- drop-down list

https://prnt.sc/njmt9r

Agradezco toda la ayuda que me puedan proporcionar.

Sub menus are not rendered and shown

Hello everyone, hope everything is doing well, so Im new on this huge Drupal universe and on this website, and I hope that I posted this problem in the correct section. :)

So my problem is that I have a bunch of menus, tried to create a sub menu, and nothing is created/rendered, and obviously not showed too.

When I look on the html result, I don't find any sub menus I created, and even when I try to dump [dump(item)] the menu items on the menu--main.html.twig, I can't find any sub menu.

Having trouble adding theme suggestions for "container"

I'm trying to add theme suggestions for "container" and it's adding the suggestions to the list, but its not using the suggestions I put in.  I've triple checked the file name, tried several directories in the themes template folder and still it won't load the file.

@font-face not working

I can not understand, is it me or is it drupal or is it some cache or what....

I can't make @font-face working in Drupal, in Bootstrap themes stylesheet....

whenever I write

@font-face {
font-family: 'Source Sans Pro';
font-weight: normal;
font-style: normal;
font-display: swap;
src: local('Source Sans Pro'),
url('/fonts/SourceSansPro-Regular.woff2') format('woff2'),
url('/fonts/SourceSansPro-Regular.woff') format('woff');
}

Create a page with its own specific content fields, template, and path?

Hi! I'm new to Drupal—and struggling to figure this out.

I'm trying to create a page that has specific content requirements. I'd like it to:

  • Have a unique set of custom content fields
  • Use a specific template
  • Show up at a specific path

Is this possible?

When I try to use the Page Manager to create a page, I'm confused by what the "Variant Types" are about. I don't want to use Blocks or Panels (I don't think anyway)—I'm just wanting to be able to create specific, custom fields for the page and then reference them in a template.

Using a variable inside a field name in Twig

I have 16 fields that are numbered (e.g. node.field_1.value, node.field_2.value, etc.). Rather than call each of these separately, I'd like to use a loop in my Twig template. So, I've got:

{% for i in 1..16 %}
{{ attribute(_context,"node.field_"~i~".value") }}
{% endfor }}

Using the attribute function from Twig.

But this doesn't work. It seems like it should, but I'm not doing something correct.

Pages

Subscribe with RSS Subscribe to RSS - Theme development