WordPress.org

Ready to get started?Download WordPress

Forums

Captions on the right side of image (6 posts)

  1. irksomecushion
    Member
    Posted 3 years ago #

    Hi everyone,

    Was wondering if anyone had some tips on positioning an image caption to the right of the image. I used to have a way to do this involving the media.php file, but it doesn't seem to work anymore as of WP 3. Would love to find a way to do this just using CSS in my theme.

    Here's an example of a page with captions.

    Here's how I'd like them to appear.

    Thanks in advance!

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

    reply by @sagemintblue in
    http://wordpress.org/support/topic/wordpress-generated-styling-and-caption-css?replies=11

    building on that, http://wordpress.org/support/topic/positioning-of-image-caption?replies=7

    the original idea by @sagemintblue is to add the code to functions.php of the theme.

    @dadsidea might have edited media.php, but is should work without doing this.

  3. irksomecushion
    Member
    Posted 3 years ago #

    Thanks, alchymyth! This sounds like a much better solution.

    If I could beg you for a bit more guidance— I pasted your code from this thread into the functions.php file, and it didn't seem to change anything— is there additional code I should add alongside it?

    Thanks again!

  4. alchymyth
    The Sweeper & Moderator
    Posted 3 years ago #

    you have to see the code from http://wordpress.org/support/topic/positioning-of-image-caption?replies=7 as an addition/edit to the code by @sagemintblue in
    http://wordpress.org/support/topic/wordpress-generated-styling-and-caption-css?replies=11

    it might be able to put this all together later ;-)

  5. alchymyth
    The Sweeper & Moderator
    Posted 3 years ago #

    here is some code:

    http://pastebin.com/VZZ8muzv

    you will probably need to adjust some numbers and some css.

  6. irksomecushion
    Member
    Posted 3 years ago #

    Thanks again! A little bit of fiddling and that was just the ticket. All best.

Topic Closed

This topic has been closed to new replies.

About this Topic