Make WP Cost Estimation & Payment Forms Builder item list image area clickable

Hi,
In “Items List” -> “Image”. Can I make the “Small description” and “Title” also clickable?
Right now you can only click the image to select it. Thanks.

https://prnt.sc/mycxsx

Like maybe some javascript to allow each .itemBloc.lfb_richtext.col-md-12.lfb_item.lfb_itemContainer_242 container to be clickable.

Hi @ak47marx,

Thanks for reaching out.

That could be possible, but may also not possible depending on the item. Would you mind providing a sample URL that has this image and form? Click propagation could cause loop and freezing of the page.

Thanks!

Sure, here is the access:
Thanks.

Hello @ak47marx,

To accomplish what you have in mind,please edit the page back in the editor and insert this custom JS code:

jQuery(document).ready(function($) {
	$(".lfb_imgTitle, .itemDes").on('click', function(event) {
           $(this).parents('.itemBloc').find('img').trigger('click');
	});
});

And you would also need this custom css code to indicate that the title and the description is clickable.

.lfb_imgTitle, .itemDes {
    cursor: pointer;
}

We would loved to know if this has work for you. Thank you.

Very cool, thank you so much :slight_smile:

You’re most welcome!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.