Comments 3gfaniz started the conversationMarch 8, 2019 at 2:00pmDear support,It appears that the default alignment for captions of images in pages and articles is centered. How can I make it left aligned?ThanksKind regardsGiuseppe 295Paul repliedMarch 9, 2019 at 4:13amHello Giuseppe!You can change that with custom CSS. Please try applying this code: .image-caption, .fancybox-title, .wp-caption-text, .gallery-item .gallery-caption { padding-left: 0; text-align: left; } I hope it helps!Regards,Paul 3gfaniz repliedMarch 9, 2019 at 9:17amDear Paul,Thanks for your attention.The code you suggested worked fine with the portfolios but not with the pages that continue to display with centered caption.Here's a link to a sample page:http://giuseppefanizza.info/46-2/How can I fix tis?An alternative option would work for me if I could use a portfolio as homepage. How can I do that?ThanksKind regardsGiuseppe 3gfaniz repliedMarch 9, 2019 at 11:04amDear, I solved by adding.wp-block-image { padding-left: 0; text-align: left;}.figcaption { padding-left: 0; text-align: left;}and changing the .figcaption attributes inhttp://giuseppefanizza.info/wp-includes/css/dist/block-library/style.min.css?ver=5.1I'm not sure if bot of this was necessary, but it worked.Please send me feedback/comentsThanksRegardsGiuseppe 295Paul repliedMarch 11, 2019 at 8:35amI would recommend putting the custom CSS into the Additional CSS box (Appearance > Customize > Additional CSS) instead of the direct editing of the style.css file. Sign in to reply ...
Dear support,
It appears that the default alignment for captions of images in pages and articles is centered. How can I make it left aligned?
Thanks
Kind regards
Giuseppe
Hello Giuseppe!
You can change that with custom CSS. Please try applying this code:
I hope it helps!
Regards,
Paul
Dear Paul,
Thanks for your attention.
The code you suggested worked fine with the portfolios but not with the pages that continue to display with centered caption.
Here's a link to a sample page:
http://giuseppefanizza.info/46-2/
How can I fix tis?
An alternative option would work for me if I could use a portfolio as homepage. How can I do that?
Thanks
Kind regards
Giuseppe
Dear,
I solved by adding
.wp-block-image {
padding-left: 0;
text-align: left;
}
.figcaption {
padding-left: 0;
text-align: left;
}
and changing the .figcaption attributes in
http://giuseppefanizza.info/wp-includes/css/dist/block-library/style.min.css?ver=5.1
I'm not sure if bot of this was necessary, but it worked.
Please send me feedback/coments
Thanks
Regards
Giuseppe
I would recommend putting the custom CSS into the Additional CSS box (Appearance > Customize > Additional CSS) instead of the direct editing of the style.css file.