Menu: open external Links diretly in same tab
-
Ola @huhno
no. Unfortunately not.You could write a little jQuery which add the attribute
target="_blank"to the link.All the best!
Marius
-
Dear @huhno
nothing to worry about. Great that you build websites with Laytheme already.I write that for you:
window.laytheme.on("newpage", function(layoutObj, type, obj){ jQuery('a[target="_blank"]').removeAttr('target'); });Add it here:

Hope I could help!
Please note that this is for ALL external links now.
Best!
Marius
-
hey @mariusjopen ,
thanks for your answer. I think I don't know where to put that code...any hints? -
For paid 1-on-1 Lay Theme Coaching, contact Audrey (audrey@cyberslayers.work) or me (info@laytheme.com).
We also code custom websites or bespoke Lay features. Drop me a line at info@laytheme.com or check out my work at arminunruh.com.
Want to support my work? paypal.me/arminunruh
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


