Home › Forum › Customization › changing size of image caption
This topic contains 8 replies, has 2 voices, and was last updated by StartupWP 2 years, 8 months ago.
- AuthorPosts
- January 23, 2014 at 10:53 AM #1382January 23, 2014 at 11:07 AM #1383
Try:
p.wp-caption-text { font-family: arial; font-size: 13px; }
January 23, 2014 at 11:52 AM #1384Thanks, that did the trick! (I’m sure I’ll have more questions…. appreciate your quick support!)
January 23, 2014 at 12:43 PM #1385You’re welcome.
September 25, 2015 at 1:38 PM #2561Hi again! I’m having problems with the caption text size again. The original CSS changes did work as suggested (I set up a child theme CSS file), but the text size (and font type) has reverted back to normal paragraph style. Has the theme coding changed?
September 25, 2015 at 2:48 PM #2563It looks like the
p.wp-caption-text
style is missing.Try running your child theme code through this tool to check for errors:
September 25, 2015 at 2:56 PM #2565It says the code is validated (this is in the child css file. And it worked before (when I first asked this question and changed the CSS as suggested). I’m wondering if the child css might not be overriding the styles.css for the theme?
Later… hmm. I added the p.-caption-text code to the original styles.css and this seems to work. So still wondering if my child CSS file is somehow not working.
September 25, 2015 at 7:56 PM #2571You’re probably right that it’s a specificity issue and it’s not overriding.
You could try:
#content p.wp-caption-text { font-family: arial; font-size: 13px; }
July 27, 2016 at 1:55 PM #2960Clear (ignore this reply)
- AuthorPosts
You must be logged in to reply to this topic.