Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Smartmenus CSS is not loading properly.
Proposed resolution
in smartmenus.libraries.yml the path to the css theme files is incorrect. the four style themes are now in their own folders.
Lines 9-14 currently:
css:
theme:
/libraries/smartmenus/css/sm-blue.css: {}
/libraries/smartmenus/css/sm-clean.css: {}
/libraries/smartmenus/css/sm-mint.css: {}
/libraries/smartmenus/css/sm-simple.css: {}
Lines 9-14 corrected:
css:
theme:
/libraries/smartmenus/css/sm-blue/sm-blue.css: {}
/libraries/smartmenus/css/sm-clean/sm-clean.css: {}
/libraries/smartmenus/css/sm-mint/sm-mint.css: {}
/libraries/smartmenus/css/sm-simple/sm-simple.css: {}
Line 15 for sm-core-css.css does not need to change, as it is not in a subfolder:
/libraries/smartmenus/css/sm-core-css.css: {}
Remaining tasks
By editing the yml file, the included theme styles are now loading properly.
Comment | File | Size | Author |
---|---|---|---|
#2 | 3175630-2.patch | 789 bytes | Ramya Balasubramanian |
Comments
Comment #2
Ramya Balasubramanian CreditAttribution: Ramya Balasubramanian at Srijan | A Material+ Company for Drupal India Association commentedHi @jenlampton,
Please have a look at this patch.
Comment #4
jenlamptonThanks for your quick work @Ramya Balasubramanian, I really appreciate the speedy turn-around! You were able to write the patch 10x faster than I could test it :)
This fix has been committed to -dev and will be included in the next release.