Comments on: 3 Use Cases for the New Divi Conditional Display Logic Update https://diviengine.com/3-use-cases-for-the-new-divi-conditional-display-logic-update/ Boost the power of your Divi website Fri, 17 Nov 2023 12:29:07 +0000 hourly 1 https://wordpress.org/?v=6.5.4 By: Kevin https://diviengine.com/3-use-cases-for-the-new-divi-conditional-display-logic-update/#comment-186838 Thu, 20 Jan 2022 15:02:31 +0000 https://diviengine.com/?p=208767#comment-186838 Figured some people might have a very good use out of my snippet. The main problem as of writing this comment is the lack of “Close” X element for which I for myself have found a very good solution. The code goes as following and can be changed depending on the user needs. This code requires row element to have the class and then anything inside it with the class .popup-close will remove the row.

– Change this for section if you use section.

$(‘.popup-close’).on(‘click’, function(){
$(this).closest(“.et_pb_row”).remove();

$(window).resize();
$(‘#page-container’).resize();

});

]]>