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 I set class to "button" with menu attribute it does not appear in the front end of my site, a change is observed in the admin panel
http://screencast.com/t/zBrx6CXQIIOG
but not in the actual frontend html of my website which is obviously where I really need it.
I am using mega menu 7.x-1.x-dev which now only has a dev release in 7
Comment | File | Size | Author |
---|
Comments
Comment #1
silurius CreditAttribution: silurius commentedI don't think this is related to megamenu, because I'm seeing the same issue as well here. Classes added to the menu link are simply not applied outside of the menu admin screen.
Comment #2
Zero4ffect CreditAttribution: Zero4ffect commentedSilurius, I'm might assume that you say "I don't think this is related to megamenu" because you're not using MegaMenu? However, I try not to assume anything. =)
Comment #3
thinkdrupal CreditAttribution: thinkdrupal commentedWhich Theme are you using? The theme is probably the issue. The marinelli theme caused the issue for me. Added some code in function marinelli_mega_menu. This is located in theme.inc.
Comment #4
hwasem CreditAttribution: hwasem commentedI'm using a subtheme of Adaptive Themes with Tb_megamenu and I'm not seeing classes, either. This issue is a bit old. I'm curious if you guys have come up with anything in the interim.
Comment #5
SwapS CreditAttribution: SwapS commentedFor #4, Reason for the issue : tb_megamenu is nt checking if classes has been added by any other module. Issue isn't with menu_attributes module but it is with tb_megamenu module
Attached patch should help. :)
Comment #7
SwapS CreditAttribution: SwapS commentedSeems wrong place for patch. Bot tried applying this patch for menu_attribute, but this will be applicable for tb_megamenu module.
There is no issue with menu_attribute module.
@hwasem : patch in #5 should solve your problem.
Comment #8
hwasem CreditAttribution: hwasem commentedThanks for this, SwapS. Do you have the issue the patch came from so I can review and better understand it? I can't see to find it. It tried issue 1691632 as list on the patch, but that was for Facebook Share module. It is giving a white screen after the patch is applied.
Thanks again!
Comment #9
SwapS CreditAttribution: SwapS commentedhwasem, apply this patch to the tb_megamenu module. it should solve your prob.
Thanks!!
Comment #10
hwasem CreditAttribution: hwasem commentedI applied it to tb_megamenu.themes.inc in tb_megamenu and I just get a WSOD.
I'm using TB_Megamenu 7.x-1.0-beta2+0-dev and it applies without error.