custom links for projects
-
Hey,
I use the custom link tool for projects, but the links only get open in a new tab. Is there any way to prevent that or is it a bug?
Best, Paul
-
hello! can you post the website address where you see the issue? and please a screenshot of which link exactly?
-
For sure! It is the Project 027.2 with the link https://paul-juergens.eu/027-1-stadtlabor-richtsberg/#poster

https://paul-juergens.eu/027-1-stadtlabor-richtsberg/#poster
-
fixed it with some javascript
document.addEventListener('DOMContentLoaded', function() {
document.querySelectorAll('a[target="_blank"]').forEach(function(link) {
if (link.hostname === window.location.hostname) {
link.removeAttribute('target');
}
});
});
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