This forum is for assistance with theme development.

My Drupal 9 site is not reading the custom page--user--login.html.twig files I created.

I am creating custom user (login) pages for my Drupal 9 sites.  I have ensured that the files follow the Twig naming conventions and are in the correct folder:

app/web/sites/site-name/themes/our-uikit-theme/templates/user/page--user--login.html.twig

How to render dropdown menu

Myself (Emka) Emmanuel Katto From Uganda.

Drupal no-conflict jQuery

Hi!!

Need help to implement Drupal's no-conflict jQuery!

how to avoid jquery conflict in the web site :

here is the problem  :

  • "Uncaught TypeError: $.cookie is not a function"
  • "Uncaught TypeError: $.fn.tooltip.Constructor.DEFAULTS is undefined"
  • "Uncaught TypeError: $.fn.popover.Constructor.DEFAULTS is undefined"

Please some one can help to fixe this ?

Twig if statements for content type

I have created a view which lists teasers from articles on a Blog page with links to the full articles. This has been styled with node--article.html.twig and for the most part this works fine.

However, I want the H2 title visible on the Blog page, but have it hidden when viewing the full article (will use the H1 tag from the normal page title block instead) .

I was able to find some references for this, but these don't appear to be working in D10.

field layouts for page content

Not sure the best place to post this question.

I have a group of fields that I need to have laid out in a specific format but all I can seem to get is all in a column or all split between columns.

I have a profile image that I need to place left and a group of fields (Alias Name, First Name, Last Name, Age ) that needs to be displayed in block format on the row as the image on the right. Then have the rest of the page info as normal under to form the main body of the content.

How to keep the menu open when it goes to mobile version ?

I am using the olivero theme. I want when the navigation bar switches to mobile mode, the main menu is unfolded by default, like in the screenshot.

How can I do this properly ?

https://ibb.co/jWSfHzH

Pages

Subscribe with RSS Subscribe to RSS - Theme development