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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

rooby’s picture

This was originally reported in #2170593: Default sub-theme is broken

candelas’s picture

This is very important. It took to me hours to find out way the navbar was not working.

candelas’s picture

Status: Active » Needs review
FileSize
229 bytes

I made a very small patch to rename kits/default/assets/javascripts/script.js to kits/default/assets/javascripts/scripts.js

candelas’s picture

I made a mistake and put a blank file. Here it is the right one

candelas’s picture

Sorry, I mistake issue. I hope I get used to the system and not to do so many mistakes :)

candelas’s picture

Title: Javascript in oa_radix not present in kit subtheme » script.js in kit subtheme overrides oa radix script.js because they have the same name

Trying to make the title more specific.

candelas’s picture

I realized that I had to change also the name in /kits/default/default.info

candelas’s picture

Priority: Normal » Major

I classify as major, since if you make a subtheme the oa_radix scripts will not work. If I am wrong, please correct to me :)

hosais’s picture

@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.

SocialNicheGuru’s picture

This seems to be a problem and is even referred to in the oa_radix documentation: https://www.drupal.org/node/2377741#comment-9544313