Support » Fixing WordPress » leftalign image in template file

  • I am using the following code in my single.php page to insert the posts feature image at the top left of the page aligned to the left. This seemed to be working fine until my post content was long enough to wrap back underneath the image.

    the content does not wrap underneath and the page navigation is also restrained to the portion of the site that remains to the right of the top left image.

    the footer, however, takes up the full width.

    can anyone help? I have used img class=”alignleft” for an image in the post itself and this aligns perfectly, so it’s just something not working with an image in a template file as far as i can tell.

    here is my code:

    [Code moderated as per the Forum Rules. Please use the pastebin]

    I cant send the page link as its not available to those not logged in. any help will be greatly appreciated!


  • The topic ‘leftalign image in template file’ is closed to new replies.