This forum is for assistance with theme development.

My Olivero subtheme broke when activating Aggregate JavaScript files

I created an Olivero subtheme. It's working fine... but my Olivero subtheme broke when activating Aggregate JavaScript files: dropdown menus are no longer working, and the search is unusable.

I'm using Drupal core 9.3.9

In console:

Uncaught TypeError: Cannot read properties of null (reading 'addEventListener')

 at js_N6YcbK7swTTO49Zu5WT0LHu1uhUK8RuVmnXXesZEYMA.js:5516:73

at js_N6YcbK7swTTO49Zu5WT0LHu1uhUK8RuVmnXXesZEYMA.js:5521:3

How to add an html tag to a theme

I am using the zurb_foundation theme in Drupal 9.3.x. I want to add a new html tag that does scrolled text using jscrollpane.

I made a mystyle.css file in the css folder that contains

pscroll {
  margin-bottom: 1rem;
  font-size: inherit;
  height: 200px;
  overflow: auto;
  text-rendering: optimizeLegibility; }
  }

And then added mystyle.css to zurb_foundation.libraries

Where to hire a Drupal theme developer for a website?

Anyone know if there is a trustable platform to hire a Drupal theme developer for a website? Thanks.

Complete crash after modifying services.yml

i'm on localhost, and i don't have drush installed

I've configured /sites/default/services.yml like this for writing my theme : 

    twig.config:
      debug: true
      auto_reload: true
      cache: false

When done, i've reset the values /sites/default/services.yml like that :

    twig.config:
      debug: false
      auto_reload: null
      cache: true

Since then every pages responds :

"The website encountered an unexpected error. Please try again later."

Drupal behavior execution and bigpipe

I keep struggling with getting JS executed when I need to target a DOM element that is added via bigpipe and when I'm logged in on my Drupal site.

The following code runs when I'm not logged in but never executes when i am logged in:

How print a media field into the bootstrap

Hi

To print a field type image in Bootstrap I use the following code and work fine

file_url(node.field_image.entity.uri.value)

 but if I want to print a Media entity don't work, some idea?

Thanks

Pages

Subscribe with RSS Subscribe to RSS - Theme development