WordPress.org

Ready to get started?Download WordPress

Forums

Jetpack by WordPress.com
[resolved] Tiled Galleries Columns Param not Working (12 posts)

  1. ameraz
    Member
    Posted 1 year ago #

    I've been trying to use the new gallery feature, pretty damn cool! ... but the column param never seems to work, it doesn't matter what type or how many columns are defined, it always shows 3 columns.

    [gallery columns="5"]
    [gallery type="rectangular" columns="6"]
    [gallery type="square" columns="7"]
    [gallery type="circle" columns="8"]

    Any help would be verymuch apreciated.

    http://wordpress.org/extend/plugins/jetpack/

  2. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 1 year ago #

    Tiled Galleries are built based on your theme's content width, so you're not able to control the number of columns as you would with standard galleries.

    You can define a specific $content_width value by adding the following code to your theme's functions.php file:

    if ( ! isset( $content_width ) )
    $content_width = 800;

  3. subper
    Member
    Posted 6 months ago #

    Hi,

    could you please tell me where to put the above code exactly? I have no clue about php. I tried but caused errors.

    And is it possible to force the gallery to make 3 or 4 columns? I always get 2 columns only, thus the gallery becomes too big, needs lots of scrolling.
    Or is it possible to use older version of the gallery?

    Thanks for helping!

    Subper

  4. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 6 months ago #

    could you please tell me where to put the above code exactly? I have no clue about php. I tried but caused errors.

    If you do not feel comfortable editing PHP files, you can use this plugin instead:
    http://wordpress.org/plugins/custom-content-width/

    And is it possible to force the gallery to make 3 or 4 columns? I always get 2 columns only, thus the gallery becomes too big, needs lots of scrolling.

    f you choose a Tiled Gallery type, Jetpack automatically calculates the number of columns based on your theme's content width, and on the number and size of your images.
    For example, if you were to upload more portrait images, you'd get more columns than if you were to use landscape pictures.

    You can't consequently change the number of columns, unless you use the "Thumbnail Grid" gallery type. Then, the column option will appear again.

  5. subper
    Member
    Posted 6 months ago #

    Thanks for your time and the great plugin!

    Regards
    Subper

  6. EXIV
    Member
    Posted 6 months ago #

    Hi Jeremy,

    First of all thanks a lot for this amazing plugin. As well as "subper" I would like to know if there is at all a way to "force a minimum column number". The thing is that I'd like to have three images per row, both because I would like the images to be smaller than their actual size, but also because three is a more pleasant number for a row. At the moment I am rebuilding a website, which is still only a prototype, so I'd need your help on this kind of gallery: http://giacomomantovani.com/wordpress/films/ Thanks a lot in advance.

  7. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 6 months ago #

    @EXIV As I mentioned above, that won't be possible as long as you use the "Tiled", "Circle", or "Square" gallery type.

  8. EXIV
    Member
    Posted 6 months ago #

    Hi Jeremy, I understand. The main reason why I wouldn't use Thumbnail Grid is because there is not that nice Caption Hover that we have indeed on the Tiled and Square. I hope you don't mind me asking if there is any chance to make the "Caption Hover" appear on the Thumbnail Grid. That would represent a definitive solution to me, as this the main reason I am trying to use the Tiled Gallery.

  9. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 6 months ago #

    Jetpack doesn't make any changes to the default Thumbnail Grid layout, but you might be able to find a plugin that will do that for you. The first result here seems to be a good solution:
    http://wordpress.org/plugins/search.php?q=gallery+caption

  10. EXIV
    Member
    Posted 6 months ago #

    Thanks a lot Jeremy.

    I am not sure that's what I need. I think I didn't express my self correctly. What I like of the Tiled gallery (respect the Thumbnail's one) is that when you move the mouse over the images it appears the related name. That's what I'd like to add to the Thumbnail gallery in some way. I would like to find a way to do this through CSS. If you go on this page you'll see how I have modified the CSS to make the name appear in white over a dark rectangle. It would be great if I find the way to make that happen on a Thumbnail Grid.

    Really, thanks a lot for the time you are dedicating to me.

  11. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 6 months ago #

    As I mentioned, Jetpack doesn't make any changes to to the default Thumbnail Grid layout. I'm afraid Jetpack won't help you here. You'll need to look for another plugin, or implement this caption style directly into your theme.
    Here are a few tutorials:
    http://wordpress.org/support/topic/changing-caption-style?replies=4
    http://designm.ag/tutorials/wordpress-caption/
    http://www.chrismower.com/1020/customize-your-wordpress-image-captions/

  12. EXIV
    Member
    Posted 6 months ago #

    Thanks for the links, I think they will be really useful, especially the last one.

    Thanks a lot Jeremy, you have been really kind to me.

    All the best.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic