This forum is for assistance with theme development.

CSS changes not taking effect

I am running Drupal 10.3.0 which was installed with composer. I am trying to create my own theme. I have the directories and files set up, and when I make changes to the css file clear the cache it has zero effect. I created a custom and themename directory under the themes directory (/htdocs/theme/custom/tb) and created a templates,css,js,images directory in the tb directory.

themes

custom

    tb

       templates

Mega Menu

Hello,

I was developing my company website in Drupal and I am really of the result achieved, and I want to improve the mega menu of the website that is currently developed with Bootstrap Barrio children theme using a saas and a custom header, but keeping the functionalities of barrio to manage the bootstrap menu.

I was looking at this project ( The Better Mega Menu ) but seems to be in alpha, and I would like to hear if a different approach would exists instead of using an external module.

Search page change snippet to summary

Hi,

Search page results shows snippets and i want to change to a summary of the content page that i searched for. How can i do that?

Thanks

taxonomy twig term: how to customize the display?

Hello,

on Drupal10.2.6, I'd like to customize term belonging to a taxonomy called 'etats'. From the genuine 'taxonomy-term.html.twig' I created a 'taxonomy-term--etats.html.twig' template to get the following display:

  1. 'field_map'
  2. nodes (teaser mode) that reference the term
  3. 'description' field

BUT, I cannot decide where the referencing nodes are displayed = all the time they are at the bottom. I'd like 2nd position.

Even when using

How to use hasField but for paragraph fields?

Within a Page Template, how Could I check if a Paragraph field if present?

I'm using this and it works:

$node->hasField($field_paragraphfield)But how can I modify this to look for a field within that field?

I tried this but it doesn't work:

$node->hasField($field_paragraphfield_banner)

Pages

Subscribe with RSS Subscribe to RSS - Theme development