HOW TO: Make a DIV Class clickable with jQuery & CSS. Add hyperlinks retrospectively to ANY website.

Опубликовано: 31 Октябрь 2024
на канале: Website Right
1,848
24

If you're using a Page Builder link WpBakery or Fusion, you might find that when adding certain blocks, you might not be able to make it a hyperlink because there simply isn't the option there! With this workaround - you can! Just use CSS for the styling, and then add some jQuery for the action, and all will work perfectly!

If you liked this video, why not give me a like and a subscribe? Anyhow, the code is...

jQuery(".class").click(function() {
window.location = "#";
});

Just replace the class and the hashtag with your class name and URL accordingly.

Please get in touch either through the comments if you managed to do this successfully - or reach me directly via my website: http://websiteright.co.uk