Site logo

Archived topic

Image Caption text left aligned - not centered!!

7 replies · Started by Stefan on August 6, 2020

Viewing posts 1–8 of 8

Hello Support,

I have searched the support forum for answers that work to no avail. It appears that Generate Press needs to update their theme so if an image caption text is selected and centered, it should be centered in the final product. Currently the image caption text will left-align. This is using the Wordpress editor, maybe GP CSS doesn't go that far? Either way it isn't aesthetically pleasing and it's confusing.

I played with the theme CSS, nothing worked. I wish I was better with CSS. Scroll down to the pictures of the rocks to get my point. Any help or guidance to remedy this issue would be much appreciated. Thank you!

Regards,
Stefan

Hi there,

Try this CSS:

.wp-block-image figcaption {
    text-align: center;
}

Hello Leo,

That did not work

Stefan

It should absolutely work.

I just checked the site but not seeing the CSS being added?

How are you adding it?

I hope so. Where should I add it? I added it initially to the main stylesheet via the WP dashboard, and then removed it after seeing no change (I refreshed and waited).

It worked, thank you so much! I added it via the WP -> customize -> additional CSS route

No problem :)

Never a good idea to edit the theme's core files.

This archived topic is closed to new replies.