Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Content Views

    (@pt-guy)

    Hi,
    This is impact of another script.
    To fix it, Please add this code to file functions.php of your active theme:

    // CVPlugin - Fix bug of Collapsible List
    add_action( 'wp_footer', 'cvp_custom_js' );
    function cvp_custom_js() {
    ?>
    <script>
    	jQuery( document ).ready(function($) {
    		// Remove Boostrap attributes
    		$('.pt-cv-view .panel-title').removeAttr('data-toggle');
    		$('.panel-collapse').removeClass('collapse');
    		$('.panel-collapse').hide();
    
    		// Do toggle manually
    		$('.pt-cv-view .panel-title').off('click').on('click', function(e){
    			e.preventDefault();
    
    			var $icon = $(this).next('span').children('i');
    			var $collapse = $(this).parent().next('.panel-collapse');
    			// Hide showing item
    			if($collapse.is(':visible')) {
    				$collapse.fadeOut(100);
    			} else {
    				// Hide other items
    				$(this).closest('.pt-cv-collapsible').find('.panel-collapse').fadeOut(100);
    				// Toggle display this item
    				$collapse.animate({height: "toggle"}, 300);
    			}
    		});
    	});
    </script>
    <?php
    }

    Thread Starter knireis

    (@knireis)

    thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Collapse layout nog opening on chrome android’ is closed to new replies.