ThemeShaper Forums » ThemeShaper WordPress Themes

image size, image captions

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

    Im building up my new blog allhimalaya.com 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 - http://allhimalaya.com/2010/01/sundays-around-doon/ ) 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 14 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: http://wordpress.org/support/topic/208122?replies=11

    Chris

    Posted 14 years ago #
  3. him
    Member

    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 14 years ago #
  4. him
    Member

    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 14 years ago #
  5. him
    Member

    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="http://yoursitename.com/wp-content/uploads/2009/02/contribute.jpg" alt="woman" width="365" height="475" align="left" />
    Photo by thephoto</div>

    Posted 14 years ago #

RSS feed for this topic

Reply

You must log in to post.