irksomecushion
Member
Posted 1 year 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!
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.
irksomecushion
Member
Posted 1 year 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!
here is some code:
http://pastebin.com/VZZ8muzv
you will probably need to adjust some numbers and some css.
irksomecushion
Member
Posted 1 year ago #
Thanks again! A little bit of fiddling and that was just the ticket. All best.