I'm experiencing a weird problem. I'm making a sub-theme of the Bootstrap theme that's available for Drupal 8. However, after trying all the possible ways of how to attach a library to a page in my theme, no one seems to work. Am I doin'g something wrong?
Here's my libraries.yml file
countdown-timer:
version: VERSION
js:
js/jquery.countdown.min.js: {}
js/auction-timer.js: {}
Here's how I am trying to attach it to all pages in .info.yml
libraries:
- numisvet/countdown-timer
I have already tried the approach of adding '#attached'
to the render array or using {{ attach_library('numisvet/countdown-timer') }}
in a twig file.
No one of these seems to work, only libraries defined by the Bootstrap theme are getting loaded.
Am I doing something wrong? Thanks a lot for all replies.