Free StuffProgramming TipsWordPress Tips

Elementor: How To Make A Column or Section A Link

Elementor can do some wonderful things, but there are a few places where it still falls short. As a quicktip, I wanted to share how to make an entire column or section in Elementor for WordPress clickable. It’s as easy as three lines of code!

Here’s an easy jQuery fix for anyone having trouble making columns or sections links. Just give your column a class of “click-child”, then add this code:

jQuery(document).ready(function() { jQuery("body").on("click", ".click-child", function() { var href = jQuery(this).find("a").attr('href'); window.location = href; }); });

It’s really that easy. Be sure to include jQuery on your site prior to enqueueing this code to avoid errors.

ideasandpixels

Author ideasandpixels

More posts by ideasandpixels

Ready to quote your new website? We are. Let's talk.

Send us your RFP or request a call or meeting with us so we can learn more about each other.