• Resolved MarioQuartz

    (@marioquartz)


    Example:

    <script type="text/javascript">
    document.addEventListener("DOMContentLoaded", function(event) { 
    	jQuery( '#slider-pro-3-256' ).sliderPro({
    		//width
    				width: "100%",</p>
    <p>		//height
    				autoHeight: true,</p>
    <p>		//autoplay
    				autoplay:  true,
    		autoplayOnHover: 'none',
    								autoplayDelay: 5000,</p>
    <p>		arrows: true,
    		buttons: true,
    		smallSize: 500,
    		mediumSize: 1000,
    		largeSize: 3000,
    		fade: true,</p>
    <p>		//thumbnail
    		thumbnailArrows: true,
    		thumbnailWidth: 120,
    		thumbnailHeight: 120,
    						thumbnailsPosition: 'bottom',
    						centerImage: true,
    		imageScaleMode: 'cover',
    		allowScaleUp: true,
    				startSlide: 0,
    		loop: true,
    		slideDistance: 5,
    		autoplayDirection: 'normal',
    		touchSwipe: true,
    		fullScreen: true,
    	});
    });
    </script>

    The code have “<p>” inside, and obviously dont work. I add the code for remove the filter “autop” but dont work.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author FARAZFRANK

    (@farazfrank)

    I think this is due to your theme. Let me know which theme are you using?

    OR

    The place, you are using slider shortcode. Are you using it in Widget Area?

    Thanks

    Thread Starter MarioQuartz

    (@marioquartz)

    Theme: accelerate
    In “the_content()” from a page

    Using:

    remove_filter( 'the_content', 'wpautop' );
    add_filter( 'the_content', 'wpautop', 99 );
    add_filter( 'the_content', 'shortcode_unautop', 100 );

    For now my crap solution is using “add_filter( ‘do_shortcode_tag'” for remove line breaks

    Plugin Author FARAZFRANK

    (@farazfrank)

    Hi Mario,

    Is that is the same theme https://ww.wp.xz.cn/themes/accelerate/?

    Can you share with me a screenshot of where the shortcode exactly located?

    Use this tool for quick screenshots using the Print Screen Button: https://app.prntscr.com/en/download.html

    I will make the same on local for test and let you know.
    If the same problem then tries to find out a solution for it.

    Thanks

    Thread Starter MarioQuartz

    (@marioquartz)

    Yes, it is that theme. I send the screenshot from your web contact form.
    I dont know how to send it in the forum.

    Plugin Author FARAZFRANK

    (@farazfrank)

    Hey Mario,

    I tested the latest plugin with the Accelerate theme on WP 4.5.1.

    It’s working perfectly, check screenshots:
    http://prntscr.com/stmt5n
    http://prntscr.com/stmrk9
    http://prntscr.com/stmtfl
    http://prntscr.com/stmu1e

    It’s probably a another plugin conflict.
    Try to add a slider on a new blank page and check.
    OR You can deactivate the other plugin one by one, to test.

    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘autop broke the javascript and style code’ is closed to new replies.