Shortcodes: external links not working
-
Hello Armin,
I posted this question on Monday in another thread but need to pick it up again here.
I am using the WP-Plugin "menu shortcode" to generate sub-menus on pages. This works fine as long as I link to internal pages or projects in my Lay install. As soon as I place an external ("custom") link, the link in my sub-menu won't work and it will block all other links on the page as well. I tested this quite a bit and it seems to be related to the data-type="custom" bit that gets added to those links. When I place an external link in my content area (so not via the shortcode menu) it works but when I add data-type="custom" it produces the same error.
Here is the page with those problems: http://laboratorium-haus1.de/wp2017/kuenstlerinnen-und-kuenstler/jenny-alten
And here is a page with internal links that work: http://laboratorium-haus1.de/wp2017/kuenstlerinnen-und-kuenstler/lydia-mueller
I guess it could be related to jQuery not being able to pull external content but I am not sure.
Is there a fix for this? It would be great since this would be a great way to have as many sub-menus as you want on your Lay pages! Not a big effort to generate an place them via shortcodes. Management of the menus can be handled by WP's standard menu page etc.
Thanks a lot! Cheers, Arne
-
Hey Arne, can you update and see if it works now?
I just did a little update which I think can make that "menu shortcode" plugin work. -
Hello Armin,
yes, that works like a charm now! Thank you!
Now if you make it possible to have these menus on all pages or projects without adding them by hand and with the rest of the pages flowing around them we have a pretty nice second menu system… ;-)
Thanks and cheers,
Arne
Before you post:
- When using a WordPress Cache plugin, disable it or clear your cache.
- Update Lay Theme and all Lay Theme Addons
- Disable all Plugins
- Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"
This often solves issues you might run into
When you post:
- Post a link to where the problem is
- Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
- If the problem is difficult to explain, post screenshots / link to a video to explain it