This forum is for assistance with theme development.

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

Encountering Issues when Developing Custom Themes with Drupal 10

I am a developer who is planning to migrate a project using Drupal v9 to Drupal v10. I have created my Drupal site but finding problems with creating custom themes even when building with the starterkit_theme in the folder structure: drupal -> core -> themes -> starterkit_theme that I then copied into: drupal -> themes as directed by the README.txt located in the themes folder. It will not populate the starterkit_theme as a usable theme.

What do I need to do to use a random HTML theme and make it Drupal?

Hello,

if I like some of the freely available Bootstrap 5 themes out there on the web and would like to use it on my D9 installation, how would I best go on to convert a HTML theme to a Drupal theme?

Thanks,
Transmitter

Pages

Subscribe with RSS Subscribe to RSS - Theme development