WordPress.org

Ready to get started?Download WordPress

Forums

Changing caption style (4 posts)

  1. DaveMcK
    Member
    Posted 6 years ago #

    Love the new caption feature, but would like to change its styling to bold and centred text.

    Where can I find the CSS for this?

    Thanks in advance.

  2. precious-forever
    Member
    Posted 6 years ago #

    Talk to the div for the image+caption like this (in your theme's "style.css"):

    .wp-caption{
    	...
    }

    And the p for the caption line is here:

    .wp-caption p.wp-caption-text {
    	...
    }

    Also make sure to have the following in your stylesheet for the alignment to work correctly:

    .alignleft {
        float: left;
    }
    
    .alignright {
        float: right;
    }

    Oh, and here is a more detailed thread on the topic ;-)
    http://wordpress.org/support/topic/189152?replies=4

  3. icash
    Member
    Posted 6 years ago #

    I have a CSS question, I am afraid. I apologize in advance, but hope someone can help me out.

    What would the alignnone look like so that you can place images side-by-side in a post?

    Any help is appreciated.

  4. Eric Marden
    Member
    Posted 6 years ago #

    You can apply float: left while inside of a block and they will line up in little rows. works best with images of the same width (for one row) or height and width for multiple rows.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.