Support » Themes and Templates » Images next to post titles

  • I feel kind of lame posting this considering my last post and the seemingly easiness of this, but I can’t seem to find the right answer to this. I want the align the images I post in the web editor around the the post title tag, but I can’t figure where it fits in the loop.

    See here. The image is under the title tag. I’d like it aligned with the rest of the text. And in the future if I want, above the title text, etc.

    Thanks for all the help. I don’t know why this is proving so difficult for me.

Viewing 2 replies - 1 through 2 (of 2 total)
  • It will be difficult to have it above the title text, as the template calls the post title, then the content, so you’d have to create a class that moved the image above the post.

    Currently you are using an align on the image, you really should use a class to float the image. Since you are using a modified version of the default theme, there’s already classes for such. .alignright .alignleft.

    So your image code would be <img class="alignleft" src="somelink" alt="image" title="title" />

    Ive been trying to do a similar thing myself, see here

    ive found that putting the link to the image into the “optional excerpt” section of the post and adding the <?php the_excerpt(); ?> ( into the post loop just before the title is called.

    then just style it with css floats.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Images next to post titles’ is closed to new replies.