Skip to content

Instantly share code, notes, and snippets.

@neilgee neilgee/bb-col-click.js
Last active Jan 6, 2019

Embed
What would you like to do?
Beaver Builder Wrap Column in Link Tag with jQuery
(function($){
$(function() {
clickColumn();
});
/*
* Make a BeaverBuilder Column clickable.
* There must be a link tag in the column element.
* Add the CSS class .click-col in the Column Settins Advanced Tab CSS value
*/
function clickColumn() {
$('.click-col').css('cursor', 'pointer');
$('.click-col').on('click', function(event){
$(this).find('a')[0].click();
});
$('.click-col a').on('click', function(event){
event.stopPropagation();
});
}
})(jQuery);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.