I
I
Igor2017-07-21 21:26:49
Drupal
Igor, 2017-07-21 21:26:49

How to change the template of radio and checkbox fields in Drupal8?

I mastered the styling with CSS, however, for their implementation, the field should be schematically displayed like this:

<div>
<input *****>
<lable>ИМЯ ПОЛЯ</lable>
</div>

Now it outputs like this:
<div>
<lable>
<input *******>
</lable>ИМЯ ПОЛЯ
</div>

As I understand it, there are patterns that set the formation. How to find and customize them in your theme?
Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
afi13, 2017-07-22
@afi13

Enable theme debug https://www.drupal.org/docs/8/theming/twig/debuggi...
This will help you easily find the name of the desired template.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question