WPPizza – A Restaurant Plugin for WordPress › Support › Add-Ons › Extensions › Timed Menu › Support › Times menu causing conflict with Divi theme sub menu
- AuthorPosts
- 26 May, 2017 at 3:08 pm #27916
Ok, so I’ve been searching for a while, and finally figured out its Timed Menu that breaks my menu system, both using default divi menu and Max Mega Menu. So I have a number of items in the dropdown going to 3rd level, some of them appear and others do not with no rhyme or reason. Can you help? I’ve already developed the website and theme for this client, I cannot change themes at this time. If I have to pay you to fix this I will.
Screen shot menu customize compared to front end view:
26 May, 2017 at 3:38 pm #27918pages do not appear in the dropdown menu if there’s nothing on the pages that can be ordered because the time(s)/date(s) set for the items when they are available is outside the current time/date. that’s intentional.
however, you have chosen to not only display the items not available (that’s optional of course – under the options tab of the plugin), but have also overridden the css to actually allow ordering of the item.
that kind of defeats the point of using the plugin.I guess I could add an option to NOT remove the pages from a menu if they are empty (i.e there’s nothing on there to order) but am somewhat puzzled why you would use the plugin in the first place ?!
perhaps I am missing something ?
PS: Btw, this has nothing to do with or is caused by the theme you are using with the plugin…
26 May, 2017 at 3:41 pm #27919Ah I see what you are saying. See we want them to be able to preorder, so I added that plugin as well. We definitely don’t want the dropdowns to disappear when not available. Can this be easily done (or undone I should say) with a function or something? Thank you!
26 May, 2017 at 5:30 pm #27920first of all i would suggest, not to use a plugin to do something it’s not meant for.
there is even a very good chance that the plugin will be amended – at some point in the not too distant future – so that you won’t even be able to add things to the cart outside the set hours EVEN IF you remove the covering div ! (After all, that’s the point of the exercise)secondly – although i do not 100% know what the exact requirements for your site are of course – it seems to me you are listing the menues of different restaurants. if that is the case, i sincerely hope you are using a mutlisite setup (if nothing else at least for your own sanity)
if so, you could simply (staying with bud-alleys here for example) create 3 sites for it (breakfast/lunch/dinner) and make the opening times and menues as required (i.e breakfast has breakfast products and breakfast opening times etc )
then you could use the preorder plugin to actually open the shop but people need to choose an appropriate time in the future if it’s closed.
however, if you are trying to be a “middleman” so to speak , the only half way sensible way i can see is simply adding something to the pages (as you have done) or indeed into the title of each menu item
again though, those are just ideas. i know nothing about the requirements or how all these restaurants work there or what the site is supposed to enable/do
you could also remove this filter in the plugin
add_filter('wp_get_nav_menu_items', array($this,'wppizza_tm_exclude_nav_menu'), null, 3 );/*exclude posts and pages from nav menu (appearance->menus)*/
via some remove_filter class
but – as mentioned above – this might not help you in the long run anyway (unless you will never update the plugin )
26 May, 2017 at 5:46 pm #27924Hmmm, I iwsh I could use multisite, but at this point I can’t. The site collects orders and sends to a third party that dispatches one of their drivers to order and pickup and deliver the food to the customer, nothing to do with the actual restaurant.
That shortcode screwed up my menu some way- If you look now it lost all the CSS from MaxMega Menu and no dropdown at all. I looked at the code but its not clear to me how to adjust it.
Thank you!
26 May, 2017 at 6:10 pm #27926what shortcode ?
i did no say anything about shortcodes..26 May, 2017 at 6:15 pm #27928Sorry I meant “function” not shortcode
26 May, 2017 at 7:31 pm #27929>pickup and deliver the food to the customer, nothing to do with the actual restaurant.
none of my business of course, but I am wondering what the site does if the restaurant in question is closed…..just thinking out loud though.removing that filter does nothing to the menu layout or css as it does not add anything to it in the first place when used. it simple removes items from the list ….
looks to me more like your menu hierarchy is not what it should be but that is not anything wppizza or any wppizza plugin influences. (but megamenu will probably)
26 May, 2017 at 7:35 pm #27930btw, just to be sure, simply removing the filter on a test install works just fine and simply re-shows (so to speak) the pages/links that were omitted (you do seem to somewhat also have some post categories in your menu for some reason – i would suggest you re-check your Appearance->menu setup)
26 May, 2017 at 7:40 pm #27931We want customers to be able to pre-order for when the restaurant IS open. We have to leave it up to them to new screw it up, but it is what it is.
Here are two screenshots. The one with the reddish orange menu and drop down is without your function in there. The other one is with your function you gave me in the file. Nothing else is different. So I guess i’m running out of luck…
26 May, 2017 at 7:42 pm #27932OMG- that is crazy. When I add back your code and got to appearance menu, the main menu has nothing. When I remove your code again and go back everything is there! AHHHH! LOL!
26 May, 2017 at 7:43 pm #27933The menu items displayed when your code is present is the default Divi shown if there is no menu sepcified, it just shows all pages and categories. I guess I will just have to rebuild the menu after activating your code.
26 May, 2017 at 8:05 pm #27935my guess is you are removing the function, not the filter !
if you do that you will get nothing26 May, 2017 at 8:08 pm #27936I placed the code verbatim in my functions.php file, I’m not sure I understand about “filters” – sorry!
26 May, 2017 at 8:17 pm #27938that wont work
you are supposed to remove the filter (and you REALLY need to understand how filters and action hooks work if you want to do any kind of customisation in wordpress – there are plenty of tutorials )
for the time being and simplicities sake (but be aware of the consequences of editing core files – i.e you will not be able to update the plugin without loosing your changes or having to re-apply them every single time). However i make no guarantees if you choose to do so:
in v2x.php of the plugin you will find (approx line 81)
add_filter('wp_get_nav_menu_items', array($this,'wppizza_tm_exclude_nav_menu'), null, 3 );/*exclude posts and pages from nav menu (appearance->menus)*/
simply delete that line (or comment it out)
let me re-iterate though. you are trying to use a program/plugin for something it was not designed for
26 May, 2017 at 8:31 pm #27939I understand, but I don’t really have an alternative. Client can’t afford a programmer and no other delivery solution can do half the stuff yours does out of the box. I appreciate your help, thank you!
- AuthorPosts
- The topic ‘Times menu causing conflict with Divi theme sub menu’ is closed to new replies.