drupalprojects / kalatheme

Mirror of http://drupal.org/project/kalatheme provided by hubdrop.
http://hubdrop.org/project/kalatheme
GNU General Public License v2.0
22 stars 29 forks source link

Navigation bar gone with bootswatch theme version 4.0.0 #309

Open vancip opened 6 years ago

vancip commented 6 years ago

I've been experiencing some trouble with a kalatheme website using bootswatch library. Navigation bar in the header is now collapsed and not usable at all. Could be something related to the maxcdn.bootstrapcdn.com/bootswatch/latest/flatly/bootstrap.min.css file that is now version 4.0.0? There is some hack in kalatheme code to force using a specific version of that file?

mrlch commented 6 years ago

Also here. Navigation Bar gone and failures in the Layout of every Kalatheme-Site. With Kalatheme 7.3.0, 7.3.4 and various bootwatch-basethemes. It seems a problem with accessing the online-files. Thanks for your support.

richard-rance commented 6 years ago

I'm having a similar issue using the cosmo base theme. The main menu shows up as a tiny button. When clicked on the level one menu items show up temporarily with incorrect formatting.

richard-rance commented 6 years ago

This issue was indeed caused by Bootswatch updating the latest version on their cdn to 4.0.0. Kalatheme uses this API to lookup the url of the css files. https://bootswatch.com/api/3.json It is currently looking for the "latest" version of the file instead of locking it in at one that is compatible with Bootstrap 3.

I've submitted a pull request to the upsteam project to get it fixed. https://github.com/thomaspark/bootswatch/pull/788

richard-rance commented 6 years ago

If you are in a rush to get your site working again you can update define('KALATHEME_BOOTSWATCH_API', 'https://bootswatch.com/api/3.json'); to define('KALATHEME_BOOTSWATCH_API', 'https://raw.githubusercontent.com/lagerenas/bootswatch/23aefe5a20ec450fcb73ff6c86594b7f36a1de75/docs/api/3.json'); in /public_html/panopoly/sites/all/themes/kalatheme/includes/utils.inc (or whatever your path happens to be). Just remember to take out this temporary fix or copy the file onto your local server.

mrlch commented 6 years ago

@lagerenas: thanks a lot for your help! For me in some cases it works, it other not yet. I have to research what's the matter.

mrlch commented 6 years ago

@lagerenas: sorry my fault it works everywhere. Thanks!!! ;)

vancip commented 6 years ago

I've been using only the flatly variant of the bootstrap library so I made it the default choice modifying the template.php in this way

define('KALATHEME_BOOTSTRAP_CSS', '//maxcdn.bootstrapcdn.com/bootswatch/3.3.7/flatly/bootstrap.min.css');

using the 3.3.7 version all the issues disappeared

richard-rance commented 6 years ago

Hi, https://bootswatch.com/api/3.json has been updated with my fix. You no longer need the temporary workaround that I suggested above. It should be taken out if you applied it.

All sites should be back to working without any updates from the users.

mrlch commented 6 years ago

Thank you guys for the support. I'll try to go back with the configuration and look if it works well.