after parameter is not working
-
Hi
You just saved me from lots of coding so thanks for that ??
I just want to know that
after
parameter ofwp_nav_menu
is not working for me.link_after
is working.Why is it so ?
NOTE: I have created menu and assigned to register menu.
-
Hi nhrk,
When Max Mega Menu is enabled, it resets all of the nav_menu_args for that menu to make sure the arguments are going to be compatible with the MMM walker.
But you can still modify them if you need to, use the nav_menu_args filter in exactly the same way but call it ‘megamenu_nav_menu_args’ instead.
Regards,
TomThanks for your reply but I am using the older version of the plugin(1.6) and in that version there is no filter ??
When I updated the plugin in my local development, all the style setting that I have done has been removed.
Hi nhrk,
Please could you post the code you are trying to use?
Also make sure you do not edit any plugin files directly, you will lose changes when you update. If you are using the “Save to filesystem” option for CSS output, then that CSS will be overwritten when you save the menu or clear the cache.
Custom CSS should either go in your themes style.css file, or into the Custom CSS area in the MMM theme editor, that way it will be safe when you update.
Regards,
TomHi
thanks for your reply.I had added custom css in style.css.
I think the issue might be because of the menu ID. In the 1.6 version menu_id is
'menu_id' => 'mega-menu-' . $current_theme_location . '-' . $menu_id,
and in latest version it is'menu_id' => 'mega-menu-' . $current_theme_location,
.Because I was using it in following way:
#mega-menu-wrap-primary-2 #mega-menu-primary-2 > li.mega-menu-megamenu > ul.mega-sub-menu > li.mega-menu-item:first-child{padding-left:170px;padding-right:80px;}
Hi,
Yes, the menu ID was removed from the CSS ID’s as they didn’t play nicely with WPML or PolyLang (and probably most multi lingual plugins).
If you use the Custom CSS area in the menu theme, and use the #{$wrap} variable instead of typing out the whole selector then you’ll be protected from such updates – But I can pretty much promise that something like that isn’t going to happen again!
If you just remove the “-2” from your custom CSS it will work again ??
Regards,
TomHi
Thanks for your reply. I just wrote whole new CSS ??
Want to ask you one more thing .. Yesterday I implemented Google Map in to the mega menu ..Working good. But somehow Map is not rendering into the Safari Browser. What might be the case ?
Here is the link of my developing site.You can find it under the Location tab. currently It is on Click event but may be when you are looking into it at that time I switched to hover.
Thanks again.
Just looked it in your official plugin site for documentation after replying here and found out that even your map is not showing in Safari Browser.So thought to let you know.
Hi
So I found out that the issue is related to the CSS. Because when I went into the deep, I can see that image from the google map is there, but due to some CSS problem it is not showing there.
Can you tell me what might be the issue ?
My guess is that it is because of the
z-index
(completely guess only).Because it is not showing only image related part like Map, Map controller etx etc..Otherwise other things are there in safari browser only.Why is it like this in safari browser only ? Its really annoying me ??
Hi nhrk,
I think I’ve found the problem with Google Maps, but it’s a tricky one to fix…
The problem is the Mega Menu panels are set to “display: none;” when the page first loads. The maps are loaded inside this hidden panel. When a map first loads, it tries to work out what size it is in order to load correctly, but it can’t do this when “display: none;” is set.
It looks like I need to use “visibility: hidden” instead of “display: none”, this should let the maps load correctly while the panel is hidden. It sounds like a quick change (in theory, it is) but it will need a lot of testing.
My current work lineup looks like this:
– Add more theme editor options (second and third level menu item styling) to the free version and release 1.7.4 (hopefully today).
– Finish off 2 more features for the Pro version (vertical menus and fadeUp effect)
– Once those are sorted I will look at the issue above.Regards,
Tom.Hey tom,
Thanks for looking into it and and I really appreciate your free support.
Waiting for new version release for that fix because my release is totally depends on yours ??
Another thing I want to ask is When you click on marker and infoWindow that pop up, after that when you click on close infoWindow, it is not allowing to close infoWindow. Is that Google Map issue ?
Thanks,
NHRKHi NHRK,
I suspect it’s a google maps issue, but it could be related to what I said in my last reply.
I’m about to release 1.7.3, so I’m moving to the Pro version for a bit (in fact a ticket has just come in so that’ll delay things).
I can’t make any promises on when that fix will be out, I’m hoping next weekend but I’m not sure what will come up between now and then. In the mean time maybe you could use the Static Google Map API instead? (if it means you can at least release your project until the MMM fix is out).
https://developers.google.com/maps/documentation/staticmaps/
Regards,
TomHey,
Thanks for the giving tremendous support(this plugin deserves more than 5 Star ?? ).
Waiting for the new version.
Thanks and Regards,
NHRK
Hi NHRK,
1.7.3 is out (a week late… ran into a few delays) but it includes the change you needed. Thanks for the review ??
Regards,
TomHey tom,
Great to see that you make time for that update.
I just updated to latest version(1.7.3.1) and somehow still google map is not working for me on Window Safari Browser(Version 5.1.7).
What I did:
1) Went to plugin update page and updated plugin.
2) After that checked on Safari directly(with excitement ?? ), but did not worked out for me.
3) Clear all cache and then tried again, but ??What might be the issue ?
Thanks for your continuous support.
Regards,
NHRK
Hi NHRK,
Looks like I fixed the wrong thing.. ??
WP Google Maps is working well for me now (it wasn’t before)
Please could you try placing your map widget on the page itself and see if it works when it’s not inside the menu?
Regards
Tom
- The topic ‘after parameter is not working’ is closed to new replies.