Have a button & Tab to trigger form
-
I have searched this support and there has been no resolution to being able to add a button to trigger the slide out of the form. I want a button only on the home page and I still require the tabHandle to work as well.
On wp-contact-slider/inc/wpcs_frontend_functions.php file I have added this code:
$(‘.wpcs-slide-out-div’).tabSlideOut({
toggleButton: ‘.slideOutBtn’, //from the author’s blog
tabHandle: ‘.wpcs_handle’,//class of the element that will become your tab
pathToTabImage: ‘<?php echo $tab_image_link; ?>’, //path to the image for the tab //Optionally can be set using css
imageHeight: ’36px’,//height of tab image//Optionally can be set using css
imageWidth: tab_Hight, //width of tab image//Optionally can be set using css
tabLocation: ‘<?php echo $slider_position; ?>’,//side of screen where tab lives, top, right, bottom, or left
speed: 600,//speed of animation
action: ‘click’, //options: ‘click’ or ‘hover’, action to trigger animation
topPos: ‘10%’, //position from the top/ use if tabLocation is left or right
leftPos: ’20px’, //position from left/ use if tabLocation is bottom or top
fixedPosition: true //options: true makes it stick(fixed position) on scroll
});
//This is my button code supplied from authors blog //
$(‘.slideOutBtn’).click(function(){
$(‘.wpcs_handle’).click();
});This works to slide the form out but it immediately slides the form back in again.
Can this be resolved once and for all as there are several people wanting this function on the author’s blog and on this forum.
The topic ‘Have a button & Tab to trigger form’ is closed to new replies.