Shortcode hyperlink
-
Hi there!
I have a question regarding shortcodes. I have managed to get a tooltip mouseover by installing a plugin called 'infopopup'. This plugin generates a shortcode which calls some text with a mouseover effect. Now I want to make this piece of shortcode a hyperlink, so that when a user clicks the shortcode a new page within the website will load.
Any ideas how to do this? I tried embedding the shortcode withing a <a href>, but that did not work.
Thanks as always for the great support & theme.
All the best,
B.
-
figured it out!
In case someone else was wondering:
window.laytheme.on("newpageshown", function(layoutObj, type, obj){
jQuery( "div class here" ).wrap( "<a href='link here'</a>" );
jQuery("br").remove();
});
I don't answer or check forum DMs, please just post on the forum.
Try this to fix issues before you post:
Use the Search Feature. Maybe there is already a solution to your issue.
1. Update Lay Theme and all Lay Theme Addons
2. Disable all Plugins
3. Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code ", click "Save Changes"
4. Now see if your problem solved itself
5. Go here, see if your problem is listed here:
Troubleshooting
When you post:
1. Post a link to where the problem is
2. If the problem is difficult to explain, post screenshots / link to a video to explain it