Closed (outdated)
Project:
Responsive and off-canvas menu
Version:
8.x-2.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Issue tags:
Reporter:
Created:
19 Jan 2017 at 21:42 UTC
Updated:
7 Jul 2020 at 16:20 UTC
Jump to comment: Most recent
Comments
Comment #2
cof6656 commentedHave you taken a look at this issue? Here it is stated that
Comment #3
snowcoder commentedYes, I've wrapped my custom Bootstrap sub-theme with a wrapping div.
That's not what is causing the problem.
Comment #4
snowcoder commentedTurns out it was the Bootstrap menu--main.html.twig file that was causing my issues in number 2 & 3 so I believe I've got that all sorted out by overriding it to just be the drupal base code for it.
Still would like a clear answer on number 1 though. Is the "Menu" icon meant to be hidden by custom CSS? I thought through the settings for this that it should be hidden when the Horizontal menu is active.
Comment #5
tancThe menu icon is supposed to be hidden by the module's own css, based upon your breakpoint specified. If you look at the responsive_menu_generate_breakpoint_css function, it creates a css file with a media query and some basic display: none or display: block css within it. I haven't extensively tested with bootstrap as I don't use it personally on projects but its possible there is something not working correctly.
Can you check you have a file called responsive_menu_breakpoint.css in your public files directory? Maybe paste the contents too.
Comment #6
snowcoder commentedYes that file was created with the following code:
However, the responsive-menu-toggle was still being displayed on screens larger 992px and not sure why. I just created my own custom CSS to hide it but I do find it weird that this didn't take effect.
Comment #7
tancThere appear to be various issues with this module when using it with the bootstrap theme. I need to spend some time working out the issues and providing fixes, either within the settings of the module or through better documentation. Unfortunately I don't use bootstrap on any project work so I'll need to set aside time for this.
Comment #8
tiger_h commentedI added the following to my css File. div..responsive-menu-toggle in the module css does not match in bootstrap
Comment #9
ladew222 commentedI had the same problem. I found a solution. May not be the most elegant but it worked
I changed line 407 of responsive_menu.module to
$css = '@media ' . $breakpoint . ' { ' . $element . '.responsive-menu-block-wrapper { display: block; } .responsive-menu-toggle { display: none !important; } }';Comment #10
tancThere is a patch for the problem of the mobile menu icon always showing in this issue: #2920765: Mobile menu icon block always displays on 8.4.0/Bootstrap site
Can people test it and report back? Also, there is a new setting that should remove the need to add the wrapping divs to the theme and it would be good to get feedback on that too.
I'm going to make this a parent issue for all Bootstrap related problems.
Comment #11
tancComment #12
jhmnieuwenhuis commentedHi,
Should it be possible to use this with a bootstrap subtheme at this time ?
If it is not possible now, what themes are supported by this module ?
If it is could you please give instructions on how to install and configure it.
I spent a full day trying and testing, but i can't get it working.
I really love the functionality of this module and would like to use it.
But i also love the bootstrap theming ;-)
Regards and compliments for this module
UPDATE :
======
I got it working now.
I copied the menu.html.twig from the core/stable theme to .../themes/custom/subtheme/templates/menu/menu--main.html.twig
Then I have set the breakpoint in the module settings to all and (min-width: 768px)
Hans
Comment #13
tristanbradley commentedAs far as I can see the "burger" comes from the Bootstrap template page.html.twig
I copied page.html.twig to YOURTHEME/templates. I then deleted the button code below and I was done.
Comment #14
Déjà vu commentedCopying the template from the core theme (stable/navigation/menu.html.twig) stable into my sub-theme worked for me. Thanks #12
Comment #15
Hookset Media commentedI can confirm that #14 fixes the layout problem with the burger (personally I prefer pancake but that is a whole different debate) and off screen menu when using this module with Bootstrap 3.
Comment #16
tancClosing as there is now a patch to support Bootstrap: #3136984: Bootstrap wrapper