Closed (won't fix)
Project:
Bootstrap
Version:
7.x-3.x-dev
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Nov 2014 at 18:09 UTC
Updated:
20 Aug 2017 at 16:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
jonloh commentedI've found out the issue. It seems Bootstrap's
theme/menu/menu-link.func.phpis overriding the menu link theme with its own implementation, and it seems to be affecting the Commerce Kickstart Admin Menu which relies on the Management menu links because it's not rendering the children menu links.The file attached is the patch file for Bootstrap actually. I'm not sure if this is the right way to fix, but it seems to work for now...
Hoping for a better solution by the Bootstrap project authors ;)
Comment #2
jonloh commentedComment #3
hmartens commentedI think you should check your admin menu if it works now because Admin Menu recently updated and since then my Admin menu has been working properly with Bootstrap.
I recently built a commmerce website using Commerce Kickstart and Bootstrap and it works perfect. I didn't run into anything funny.
Comment #4
ITWest-jg commentedPATCH WORKS FOR ME!!
Thank you so much! This has been bugging the team for a long time :)
This is on a clean install of commerce with bootstrap theme
Comment #5
lsolesen commentedAm I right that this patch is for Bootstrap? and that this issue is actually with bootstrap and not with CK?
Comment #6
hmartens commentedI would like to know whether just updating Admin Menu fixed their problem because on all my Bootstrap sites I only had to update Admin Menu to the latest version and everything is working perfect.
Comment #7
bonked commentedBetter than patching Bootstrap 3 - you can add the following to your bootstrap sub-theme's template.php file.
Comment #8
dxxThanks bonked!
Comment #9
mglamanMoving this from Commerce Kickstart queue to Bootstrap, as it looks like patch is for the theme's logic check on theming menu links.
Comment #10
markhalliwellDe-escalating priority since this can easily be mitigated by implementing a sub-theme override as suggested in #7.
I was almost tempted to close this a duplicate of the related issue I'm attaching here, however this is an issue that only creeps up when using a specific module.
FWIW, I'm not really a fan of using
module_exists()in code like this that is executed quite frequently (performance reasons).Despite the fact that we're already doing this for navbar; I'm going to leave this open so a more elegant solution can be determined than the current makeshift hacks implemented here.
Comment #11
Comevents-web6 commentedIt worked with your code bonked! Thanks
Comment #12
sachchidanand commentedCommerce Kick start management(admin menu link) are not working with bootstrap theme. Sub links are not displaying with bootstrap theme.It works for other than bootstrap theme. FYR http://screencast.com/t/gJRreNz3W1
Kindly suggest
Thanks,
sachchidanand
Comment #13
markhalliwell@sachchidanand, the current "solution" is either #1 or #7.
Comment #14
catFighter commented#7 work very good. You need to only add this to the main theme. Also working when you log on the admin area where is different theme (admin theme). In this way you can still update parent theme bootstrap without lose this fix!!!
Comment #15
markhalliwellI agree that #7 is the more likely solution for this. Not every site will have commerce and I would like to avoid additional
module_existscalls in this.Comment #16
fahadurrehman commentedI put the code from #7 in my subtheme's template.php file changed the YOUR-BOOTSTRAP-3-SUBTHEME to my theme name but the menu gets more weird and dropdown still not worked.
Comment #17
legrandkay commentedI tested this with bootstrap 7.x-3.14
This is similar to #7. Paste this into your sub-themes template.php file.