WordPress.org

Ready to get started?Download WordPress

Forums

Changing number of gallery columns has no effect (6 posts)

  1. janetwebdesigner
    Member
    Posted 2 years ago #

    Ever since I started using WordPress earlier this year I've had trouble getting galleries to display how I want them. Particularly it doesn't seem to matter how many columns I set, I just end up with whatever number fills up the width of the page!
    In this test site (http://aspirewebsolutions.co.uk/test-area/wpdemo/ecuador/) I've tried setting gallery columns to 3,4 and 6, but I always end up with 5.
    There are a few posts with similar issues but I can't find the solution to this particular problem.
    Any ideas gratefully received!
    Janet

  2. ChristiNi
    Member
    Posted 2 years ago #

    Hi janetwebdesigner,

    Are you using a plugin or the gallery shortcode:

    http://codex.wordpress.org/Gallery_Shortcode

    If you're using a plugin, please let us know the name of the plugin. If you're using the shortcode can you show us the code you are putting into your page?

    Thanks!

  3. janetwebdesigner
    Member
    Posted 2 years ago #

    Hi ChristiNi
    I'm not using a plugin. I'm using the standard WP add image/gallery function (which generates the shortcode: [gallery link="file" order="DESC" columns="4" orderby="title"]) but gives me 5 columns!
    Thanks!
    Janet

  4. alchymyth
    The Sweeper & Moderator
    Posted 2 years ago #

    I can't see the gallery css styles in your site;
    have you added any coding to suppress the gallery styles to be added to the content?

  5. janetwebdesigner
    Member
    Posted 2 years ago #

    Hi alchymyth
    I haven't added any coding myself but it occurred to me that it could be the theme I'm using (I've had this problem with every theme I've used to date, which is why I hadn't considered it before). So I just switched to theme Twenty Eleven and, lo and behold, I've got the number of columns I asked for!
    Thanks!

  6. Ciro Urdaneta
    Member
    Posted 2 years ago #

    Same problem here, no extra plugins for the gallery and it doesn't work on WP 3.3

Topic Closed

This topic has been closed to new replies.

About this Topic