Maas_De_Bate
Forum Replies Created
-
Updated code to add/remove ‘open’ class and overlay
jQuery(‘#slideOutBtn’).toggle(function(){
jQuery(‘.wpcs-slide-out-div’).animate({right:’-3px’}, 600).addClass(‘open’)
add_light_box_effect();
return false;
},
function(){
jQuery(‘.wpcs-slide-out-div’).animate({right:’-444px’}, 600).removeClass(‘open’);
remove_light_box_effect();
return false;
}
); //toggleHi I got it to work using this code (just added a ID to my button:
jQuery(‘#slideOutBtn’).toggle(function(){
jQuery(‘.wpcs-slide-out-div’).animate({right:’-3px’}, 600);
setTimeout(adjust_slider_on_right, 500);
add_light_box_effect();
return false;
},
function(){
clickScreenToClose();
return false;
}
); //toggleI put the code in the wpcs_frontend_functions.php file at line 181 after
jQuery(function($){
…
$(‘.wpcs-slide-out-div’).tabSlideOut({
…
});
});[insert code]
Hope it works for you.
- This reply was modified 7 years, 4 months ago by Maas_De_Bate.
No.
It just slides the form out then the form immediately slides back in again, the overlay isn’t activated either.
For developer –> https://www.roycon.com.au/