ThemeShaper Forums » ThemeShaper WordPress Themes

image size, image captions

(5 posts)
  • Started 11 years ago by him
  • Latest reply from him
  • This topic is resolved
  1. him

    Im building up my new blog based on COmmune and loving the way its made much of my task so easy. But I'm having problems with my images.

    First, in the post page, the image does not show up in full size ( example on this page - ) the actual photo is 375px x 500px but gets shown up rather smaller. How can i correct this?? in my editimage box while uploading the image, i have carefully checked that size is marked FULL.

    Secondly, how can i add hyperlinked captions under the photos. Im using photos from flickr where i want to give credits to the actual owner. I've toyed with a couple of plugins (image caption easy, image caption) and adding hyperlinks in description also, but nothing works. Can anybody who has done this help out?

    Posted 11 years ago #
  2. Hi,

    had a short look into the code. Cristian is using 'medium' to integrate the images (300 x 300 px by default).

    For the hyperlinked caption:


    Posted 11 years ago #
  3. him

    Thanks Chris for the quick response. I had found that discussion in the searches. But the problem is that the solution works by 'inserting' the image, while Cristian has configured Commune to work without inserting the 'image' - just uploading it with the post. And it recognises the image. Guess I'll hv to request Cristian to tweak it :)

    thanks anyway!

    Posted 11 years ago #
  4. him

    Cristian was generous enough to solve the hyperlinked captions issue!! I'm putting the solution here incase other people want to use this feature.

    To add a hyperlinked text under your images on post pages, I'm putting Cristian's exact words-

    " So to list your caption you need to add this (in index.php and single.php of the theme folder; in my case, Commune) before the closing </div> tag of the div
    class thumb_150x150:

    <?php $key="caption"; echo get_post_meta($post->ID, $key, true); ?>

    After you add this, in the wordpress backend, on your post create a new custom

    field with the name caption and inside it put the credits. "

    Works like charm! Currently trying to find out how I can add hyperlinked captions below a second image and so on in the same post.

    Posted 11 years ago #
  5. him

    The second pic caption is also solved, thanx to Cristi!!!!

    Here is how it goes:

    The first pic in Commune is ONLY uploaded and NOT inserted.

    The second pic you hv to manually insert in the post, then switch to the html view and manually create a DIV around your image attributes. Here is an example :-

    <div class="postimage"><img class="postimage" title="contribute" src="" alt="woman" width="365" height="475" align="left" />
    Photo by thephoto</div>

    Posted 11 years ago #

RSS feed for this topic


You must log in to post.