WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Gallery Columns Not Displaying Correctly (5 posts)

  1. nrepair
    Member
    Posted 4 years ago #

    In the following post, I have the gallery set to display in two columns. No matter what I set it to, it always displays three columns. I've searched the forums and tried some of the fixes, but nothing works. What do I need to add to my css file to control this behavior?

    http://inrepair.net/2009/09/15/burj-dubai-skyscraper-gets-a-bath/

  2. esmi
    Forum Moderator
    Posted 4 years ago #

    It looks like the gallery is being automatically set to 3 columns by your theme. Try temporarily activating the default theme to confirm this. If this is the case, the relevant code is probably in the theme's functions.php file.

  3. nrepair
    Member
    Posted 4 years ago #

    I guess there's not much I can do about that. How do I prevent text wrapping when there are less than 3 images in a gallery?

  4. esmi
    Forum Moderator
    Posted 4 years ago #

    If you use the HTML tab, you could add <br style="clear:left" /> after the gallery shortcode.

  5. nrepair
    Member
    Posted 4 years ago #

    The Clean Gallery Plugin fixed this issue.

Topic Closed

This topic has been closed to new replies.

About this Topic