TomL Posted October 7 Posted October 7 Site URL: https://www.tleighton.com/ Hi, I am having an issue where text overlayed on an image is blocking the image links. I have tried making the text the same link and coding out the underline, but the is still an area of the text box that blocks the link. Is there code to make the whole image clickable whilst ignoring any text? example - https://www.tleighton.com/geology-photographic-series Thanks
Solution tuanphan Posted October 9 Solution Posted October 9 You can use this to Website Tools > Custom CSS to fix problem body.homepage article .fe-block:has(.html-block a) { pointer-events: none; } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)
TomL Posted October 9 Author Posted October 9 7 hours ago, tuanphan said: You can use this to Website Tools > Custom CSS to fix problem body.homepage article .fe-block:has(.html-block a) { pointer-events: none; } Thank you, that has worked well for the home page. I also need to apply it to other relevant pages for example https://www.tleighton.com/geology-photographic-series Do I proceed one by one with collection ids? I am also currently adding links to the text and the image, then using text-decoration: none !important; to remove the underline of the link. Is there a more elegant way of doing all of this? Thanks very much for your help!
tuanphan Posted October 11 Posted October 11 On 10/9/2024 at 6:35 PM, TomL said: Thank you, that has worked well for the home page. I also need to apply it to other relevant pages for example https://www.tleighton.com/geology-photographic-series Do I proceed one by one with collection ids? I am also currently adding links to the text and the image, then using text-decoration: none !important; to remove the underline of the link. Is there a more elegant way of doing all of this? Thanks very much for your help! Just repeat the code replace body.homepage with Page ID Use this tool to find Page ID This is format of Page ID (red arrow) Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment