WordPress.org

Ready to get started?Download WordPress

Forums

Twenty Ten
[resolved] how to wrap caption text in a gallery (5 posts)

  1. ursalataan
    Member
    Posted 2 years ago #

    Hi,

    I have long captions in my gallery in twenty ten so you can't tell where one caption ends and the next begins.

    I would like to add code to tell it to wrap the photo caption text after 35 characters instead of 42 on a 3 column gallery.

    Can someone point me to where to change this in the twenty ten theme?

    http://www.marriageandthenewmonogamy.com/

    Thanks,
    Ursala

    http://wordpress.org/extend/themes/twentyten/

  2. alchymyth
    The Sweeper & Moderator
    Posted 2 years ago #

    edit style.css, find:

    .gallery .gallery-caption {
    	color: #888;
    	font-size: 12px;
    	margin: 0 0 12px;
    }

    and add some left/right padding; example:

    padding: 0 15px;

    btw:
    it is recommended not to edit Twenty Ten directly, but to create a child theme http://codex.wordpress.org/Child_Themes and make the edits in there.

  3. ursalataan
    Member
    Posted 2 years ago #

    Thanks alchymyth, I'll be able to use this a little later.

    I'm just learning where to go to access the FTP files in order to create a root install and then a new directory.

    Would I access wp-content/themes through general settings in WP or through my host by creating an FTP account?

    thanks again.

  4. ursalataan
    Member
    Posted 2 years ago #

    This site has been pretty helpful in starting with a child theme.

    http://op111.net/53/

    Thanks you alchymyth.

  5. ursalataan
    Member
    Posted 2 years ago #

    adding padding was perfect, thanks!

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic