Getting link URL
-
I have advanced functionality where I have a number of images that have rollover effects. Each image, when a user hovers over it, displays a black over lay with some text and a link. This works great, however, I’d like the whole overlay to be a link so the user can click anywhere on that image/overlay instead of just the text link.
When I try to do this manually with the visual editor, by selecting the content and clicking the link icon, WordPress removes the link that i’ve just put in and nothing happens. I know this is to do with the ‘semantic’ rules of WordPress but i’m using HTML5, which permits the use of the ‘a’ tag in this way.
I don’t want to disable auto-formatting because the administrator for the website is not so hot with HTML. How else could I get this functionality to work?
- The topic ‘Getting link URL’ is closed to new replies.