How can I change the size of the image captions in Wordpress?

7 replies
  • WEB DESIGN
  • |
Hi,

I have searched on Google but didn't found a clear answer on this.

I have been able to change the color of the caption, but

when I put a caption text on an image in a post, it appears a big right margin on the image, which makes it look a little ugly.


I wonder how can I change and format the captions margins?
#images #put #text #wordpress
  • Profile picture of the author AbdullahKaragoz
    No one have any idea?
    {{ DiscussionBoard.errors[7953999].message }}
  • Profile picture of the author Istvan Horvath
    No one has an idea because your question doesn't make sense because it is theme specific.

    I understand not willing to share the URL/site but at least you could have mentioned
    - the theme is use,
    - how you make the captions,
    - include the HTML output of the image+caption,
    - post the CSS details for that specific class(es) that the theme is using around captioned images.

    Without that... it's completely useless to ask any how-to question.
    Signature

    {{ DiscussionBoard.errors[7954307].message }}
  • Profile picture of the author AbdullahKaragoz
    When I put caption on an image, it puts a code like this:

    [caption id="attachment_672" align="alignleft" width="351"]

    The image size is this: style="width: 281px; height: 307px;


    When I change the [caption id="attachment_672" align="alignleft" width="351"]

    to [caption id="attachment_672" align="alignleft" width="300"]

    It looks ok.
    {{ DiscussionBoard.errors[7954582].message }}
  • Profile picture of the author RobinInTexas
    You need to adjust the CSS

    Create a child theme and use firebug to find which settings you need to change.
    Signature

    Robin



    ...Even if you're on the right track, you'll get run over if you just set there.
    {{ DiscussionBoard.errors[7960317].message }}
  • Profile picture of the author Susan Stones
    Search the css file for "caption", it will list the color either with a name or a number. Edit this to the colour that you want, and save it.
    {{ DiscussionBoard.errors[7960411].message }}

Trending Topics