WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [Plugin: File Gallery] alignment of captions (3 posts)

  1. Pattaya_Web
    Member
    Posted 3 years ago #

    This is a really cool plugin and I'm using it extensively on http://photo-journ.com. The only issue is the alignment of captions that exceed the width of the the thumbnail and butt up against the grid boundaries.

    Is there a way to align the caption text please?

    Thanks.

  2. Aesqe
    Member
    Posted 3 years ago #

    @Pattaya_Web: that's how the default WordPress gallery template looks too, the code in the default template was more or less copy/pasted from WP :)

    The easiest way would be to add something along these lines to your theme's CSS, or create a custom File Gallery template with these same lines in 'gallery.css' file:

    .gallery.columns_3 .gallery-item,
    #content .gallery.columns_3 .gallery-item
    {
    	width: 30% !important;
    	margin-right: 3% !important;
    }

    how you want to style the columns is, of course, all up to you. this code will force a 30% column width, with a 3% right margin.

    here's the help file section about custom File Gallery templates: http://skyphe.org/wp-content/plugins/file-gallery/help/index.html#your_own_templates

    let me know if you get stuck :)

  3. Pattaya_Web
    Member
    Posted 3 years ago #

    Fantastic. Thanks very much. Perfect solution.

    For the Weaver 2.0 theme based on twenty ten it's a simple matter of dropping this into the Head section for customised CSS in the Advanced these setting.

    Make everything look neat and tidy now :)

Topic Closed

This topic has been closed to new replies.

About this Topic