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.
When you create a sub theme using the kit thereare problems with the positioning of the panels in place editor (IPE) and the nav menu collapse.
This is because the script.js in the kit theme overrides the script.js in the oa_radix theme (and is empty).
If there are scripts in the oa_radix theme that need to be inherited they need to be in a file with a different name.
Otherwise the scrips need to be added to the kit subtheme.
Comment | File | Size | Author |
---|---|---|---|
#7 | oa_radix-rename-script.js-to-scripts.js-2323685-7.patch | 642 bytes | candelas |
Comments
Comment #1
rooby CreditAttribution: rooby commentedThis was originally reported in #2170593: Default sub-theme is broken
Comment #2
candelas CreditAttribution: candelas commentedThis is very important. It took to me hours to find out way the navbar was not working.
Comment #3
candelas CreditAttribution: candelas commentedI made a very small patch to rename kits/default/assets/javascripts/script.js to kits/default/assets/javascripts/scripts.js
Comment #4
candelas CreditAttribution: candelas commentedI made a mistake and put a blank file. Here it is the right one
Comment #5
candelas CreditAttribution: candelas commentedSorry, I mistake issue. I hope I get used to the system and not to do so many mistakes :)
Comment #6
candelas CreditAttribution: candelas commentedTrying to make the title more specific.
Comment #7
candelas CreditAttribution: candelas commentedI realized that I had to change also the name in /kits/default/default.info
Comment #8
candelas CreditAttribution: candelas commentedI classify as major, since if you make a subtheme the oa_radix scripts will not work. If I am wrong, please correct to me :)
Comment #9
hosais CreditAttribution: hosais as a volunteer commented@candelas
After updating, I noticed the problem that "the navbar was not working" like you.
Do you remember to enable bootstrap functinoality? (admin/config/development/bootstrap_library, Visibility -> Activate on specific themes -> Only the listed themes, add yourtheme). I forget this many times and spent hours to realize it.
Comment #10
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedThis seems to be a problem and is even referred to in the oa_radix documentation: https://www.drupal.org/node/2377741#comment-9544313