insert link not working
-
Hi
The insert link stops working when I've added a class / ID to same text box.
In my case 'Close'
toby
-
Dear Toby
@Toby
Beautiful website and Artworks ✨
Have sent you a message via 'Chats' ➡️
Best wishes
Richard
-
Thanks Richard - I've sent you a response.
-
Richard Global Moderatorwrote on May 17, 2021, 8:52 PM last edited by Richard May 17, 2021, 4:53 PM
Dear @Toby
Thank you 🌝 I understand now:
" The insert link stops working when I've added a class / ID to same text box. " "In my case 'Close'"
When testing I had no issue creating links, but then see the problem on the front-end.
Giving an element the class or ID 'close' assigns something native/default in either Lay Theme or WooCommerce to the element.
I would suggest choosing a different Class or ID name that doesn't cause this interference. When testing different names, your element worked as it should.
Thank you for posting this Toby as i learnt something, also have a wonderful day, let me know if you run into further issue 🌼
Best wishes
Richard
-
Hi Richard
Thanks for the response. - I changed the class/ID to 'back' and tried a number of other names too but the link still won't respond!?Cheers
Toby -
Dear Toby
@Toby
I have created a test page called "Link Test By Richard"
Here i have given the text element a class: special.
The link works as it should.Talk soon & best wishes
Richard -
@Richard said in insert link not working:
Link Test By Richard
Hi Richard
I've narrowed it down - all links work until you add the 'fixed' element and then the class / id stops working - any suggestions??
Thanks
Toby -
Richard Global Moderatorwrote on May 20, 2021, 11:12 PM last edited by Richard May 20, 2021, 7:13 PM
Dear @Toby
This is is a z-indexing problem related to the navbar.
I set up a test page as you needed:
- text element with 'close'
- Linked back to 'projects' page
- custom class 'back' applied
If the Link falls under the navbar's area it becomes unclickable because it is hidden behind ( even though the navbar is transparent it still applies ) :
For testing purposes i set the text elements 'z-index' to 99 & the navbar's 'z-index' to 0. This was issue as now the 'close' text element / link is clickable:
The Link was functioning as it should all along but this was why you couldn't activate it.
Best wishes Toby & thank you for supporting Lay Theme 🌝
Sincerely
Richard
-
Ah! the dreaded z- index
Thanks RichardToby
-
Yes the z-index a common enemy indeed! 🙈
10/10
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