Viewing 1 replies (of 1 total)
  • Same here. This is due to div’s with only br’s in them.

    And THIS is due to WordPress inserting br’s in your post. Let me guess, your post looks something like:

    [carousel id=''  items = '3' items_desktop = '3' items_desktop_small = '3' navigation = 'true' slide_speed = '400']
        [item href='' img_link='https://wordpress.localhost/wp-content/uploads/2015/03/naikiapeterssamtaylor.jpg']
        [item href='' img_link='https://wordpress.localhost/wp-content/uploads/2015/03/lolawilson.jpg']
        [item href='' img_link='https://wordpress.localhost/wp-content/uploads/2015/03/cheridynbennett.jpg']
    [/carousel]

    Just like the example in the docs, right? Well, WordPress’ WYSIWYG editor has a connundrum – if it doesn’t put br’s after your lines, your post doesn’t look like it did in the editor. But if it DOES, then when you enter HTML directly in the “Text” tab of the editor, it gets extra stuff put in later.

    To fix your problem in an ugly way, just do this:

    [carousel id=''  items = '3' items_desktop = '3' items_desktop_small = '3' navigation = 'true' slide_speed = '400']
        [item href='' img_link='https://wordpress.localhost/wp-content/uploads/2015/03/naikiapeterssamtaylor.jpg'][item href='' img_link='https://wordpress.localhost/wp-content/uploads/2015/03/lolawilson.jpg'][item href='' img_link='https://wordpress.localhost/wp-content/uploads/2015/03/cheridynbennett.jpg']
    [/carousel]

    What I usually end up doing is putting this in my theme’s functions.php (better would be in a plugin):

    remove_filter( 'the_content', 'wpautop' );
    remove_filter( 'the_excerpt', 'wpautop' );
    
    function gb_wpautop_nobr( $content ) {
        return wpautop( $content, false );
    }
    
    add_filter( 'the_content', 'gb_wpautop_nobr' );
    add_filter( 'the_excerpt', 'gb_wpautop_nobr' );

    This stops WordPress from inserting br’s in my content.

Viewing 1 replies (of 1 total)
  • The topic ‘how to change width between images’ is closed to new replies.