Support » Plugin: Jetpack by WordPress.com » Centering Square Tiles / Carousel

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

    (@jeherve)

    You could use CSS to center the whole gallery, but instead I would suggest that you add a $content_width variable so that the gallery uses the whole width available in your theme’s content area.

    To do so, just add the following to your theme’s functions.php file:

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

    Of course, you’ll want to adjust the value to your own theme.

    You can read more about it here:
    http://codex.wordpress.org/Content_Width

    If you do not want to make changes to your theme, you can use this plugin instead:
    http://wordpress.org/plugins/custom-content-width/

    Thanks for the response – so in my website’s case the gallery does use the whole content area width, but (in the desktop view of the page) the thumbnails don’t quite have enough room to fit in to one more column on the right; so there is a white space on the right that is a little narrower than the width of each gallery thumbnail.

    How can I reduce the size of the thumbnails so I get that extra column on the right?

    Thanks!

    Plugin Contributor Richard Archambault

    (@richardmtl)

    Happiness Engineer

    Could you post your site URL here, so I can have a look?

    Here!

    Thanks for your help,
    -wp510

    Plugin Contributor Richard Archambault

    (@richardmtl)

    Happiness Engineer

    There’s not enough room on the right, because the div#container includes a padding of 50px. You could try to reduce the padding on the right by 12 pixels or so (so, 38 pixels or less), and make section#content 972px wide or a touch more, that might do the trick.

    Thanks for your help, I fixed it!
    -wp510

    Plugin Contributor Richard Archambault

    (@richardmtl)

    Happiness Engineer

    Awesome, it looks good!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Centering Square Tiles / Carousel’ is closed to new replies.