This forum is for assistance with theme development.

How to render paragraph in content type

I have created a content type called Repeat(node--repeat.html.twig) I want to render paragraph type fields in node--repeat.html.twig so I placed <div> in which paragraph is rendered and then I added paragraph field in content type which I have created but the content type is showing empty.paragraph is not rendering nor it's showing in inspect element. But instead of a paragraph if I add  one or more fields those are rendering correctly

this is the code

<div class="container py-5 pb-5 mx-auto">

      <div class="row row-cols-1 row-cols-md-3 g-4">

How to render dropdown menu

I created menu without the child with this  code it rendered correctly with my css -->

<ul class="navbar-nav me-auto mb-2 mb-lg-0">

    {% for item in items %}

    <li class="nav-item">

       <a class="nav-link  " href="{{ item.url  }}">{{    item.title }}</a>

    </li>

    {% endfor %}

    </ul>

Separate balise hr?

Hi :)

I would like put balise hr between Field for a Content, but how is the best proceed?

With Layer Builder I try but no works....

Thx.

How to Login as admin for custom theme

I've created a custom theme(bootstrap as contrib)

Custom menu twig template get id by alias. Possible?

I am new to Drupal 8 and cannot seem to be able to figure this out.

I have a custom menu--main.html.twig template where I need to get node ID from an alias. I am able to extract item.url in a macro and then would like to use a twig tweak function to load a field from another node.

Can anyone help me to solve this problem?

I'm a beginner in Drupal and I'm helping to administer a site djanemag.com, but the problem is the look of the main page that is without the graphics and all messed up according to the print. However, the other pages are working perfectly. 

Pages

Subscribe with RSS Subscribe to RSS - Theme development