image caption align centre not working

  • Unknown's avatar

    I have a gallery which is showing in the ‘visual’ view with the captions centred. It is also showing in the ‘text’ view with: gallery type=”square” class=”wp-caption aligncenter” as part of the code.
    However it is not showing centred on the webpage. How can I make it do what it appears to be suggesting it should be doing? THanks

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    The easiest way to do this for Tiled Galleries like the one seen here would be to use CSS. Try entering this code under Appearance -> Customize -> CSS:

    .tiled-gallery-caption {
    	text-align: center;
    }

    Let me know if that works for what you’re looking for!

  • Unknown's avatar

    This didn’t work, but another member of staff has just added the bit that made a difference
    .tiled-gallery-caption {
    text-align: center !important;
    }
    and it now works.

  • Unknown's avatar

    Great! Let us know if there’s anything else we can help with! :)

  • The topic ‘image caption align centre not working’ is closed to new replies.