Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    Could you let me know what error you got when trying to update that $content_width value?

    Could you also let me know what value you’d like $content_width to have on your site?

    Thanks!

    Thread Starter Drain0

    (@drain0)

    Thanks Jeremy

    I fixed it in functions.php by adding

    function change_gallery_width() {return "940";}
    add_filter('tiled_gallery_content_width', change_gallery_width,10,3);

    altho it’s still in 2 columns, I would’ve liked 3 or 4 – is this easy to do?

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    it’s still in 2 columns, I would’ve liked 3 or 4

    If 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. Even if you’ve now increased the content width, the type of the images in your gallery still matters.
    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.

    Thread Starter Drain0

    (@drain0)

    Hmm, cos it was 2 columns at the default (500) width and is still 2 columns at 940 width, the images are just larger which is ok but I would’ve liked 3 or 4 col.

    Thanks anyhow.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Tiled mosaic gallery width’ is closed to new replies.