How do you change the size of the caption text under pictures?

  • TheB94

    #5011

    I tried using this, but it did not work:

    .gallery-caption {
    font-size: 12px;
    }
    Mod

    Kenneth John Odle

    #30274

    If you are talking about a caption, then try this code:

    .wp-caption p {font-size:12px;}

    alter the value to whatever you want.

    TheB94

    #30275

    That didn’t seem to work. My webpage is http://www.ochoallc.com… I am trying to change the size of the text under the pictures.

    Anonymous

    #30276

    It seems this is what you should use:

    .wp-caption-text{
    font: 14px arial !important;
    }

    I can’t tell if the !important is necessary or not, you may want to test it out.

    Hope it helps.

    TheB94

    #30277
    Quote:
    .wp-caption-text{ font: 14px arial !important; }

    Thank you, that worked perfectly.

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.
Do NOT follow this link or you will be banned from the site!