Forums

display image with every post (15 posts)

  1. jmlau
    Member
    Posted 4 years ago #

    Hi,
    I'm using the "Durable v0.2.5" theme for my blog

    is there some way to display a full-size image(s) in each post, so that there is one long scroll of images as on http://woostercollective.com/

    I tried clicking "full-size" and "not linked" when uploading the image and "sending to editor", but the image only shows up on the first post, and subsequent posts only have text showing.

    Please advise. Thanks kindly.

    JM

  2. shadow
    Moderator
    Posted 4 years ago #

    Are you uploading an image in every post though or only in the first post?

  3. jmlau
    Member
    Posted 4 years ago #

    i'm uploading an image with every post.

  4. moshu
    Member
    Posted 4 years ago #

    Never ask display/layout questions without referring to your theme, without giving a link etc.

    Does it work if you switch to the default theme?

  5. mendezki
    Member
    Posted 4 years ago #

    I guess this theme displays the full post for the newest post, and a title/excerpt for previous posts. To show all posts' contents on the index page you'd need to adapt index.php. A link to your site would be handy, as the theme's demo site doesn't seem to work.

  6. jmlau
    Member
    Posted 4 years ago #

    hi, here's the link to my site: http://www.pragueviewfinder.com/ pardon delay.

    yes, it does work with the default theme, though the images are all sorts of weird proportions. i find each theme sizes the images differently and i adjust them with width and height tags.

    re durable: how do i adapt the index.php. first, i'm not sure how to acess the index.php, since it's not an option in the theme editor. do i need to download it to my local folder and edit it directly with a text editor like bbedit? i was using dreamweaver but that doesn't seem to show the html.

  7. moshu
    Member
    Posted 4 years ago #

    1. Never edit any WP files with DW - its' bad karma :)
    2. A plain editor should work fine.
    3. Yes, edit the files on your computer. The online editor
    a) is dangerous
    b) doesn't have an UNDO button

    If it work normally with other themes - you need to edit the index of your theme. If it uses the_excerpt tag, that strips all the html... (read the docs)

    As for the pics: NO, it is not the browsers... it is you. You should resize properly every image of yours before uploading! WP doesn't do it for you...

  8. jmlau
    Member
    Posted 4 years ago #

    re last para: i see now the index.php is in the theme editor as "main index template". is this the file that should be adapted as was suggested? if so, how? thanks

  9. moshu
    Member
    Posted 4 years ago #

    Too much posting stops you from reading carefully the replies :)

  10. jmlau
    Member
    Posted 4 years ago #

    is it just me or is there a zen subtext to this thread? :)

    thanks for the lead... i'll read up on the excerpt tag and let you know how it goes.

  11. mendezki
    Member
    Posted 4 years ago #

    I see a <?php the_excerpt() ?> on line 55 that is in dire need of being replaced by <?php the_content() ?>.

    You can edit the html just fine in Dreamweaver, just hit the Code button somwhere at the top of your document window, or go to menu item View > Code.

  12. jmlau
    Member
    Posted 4 years ago #

    thank you so much for the help, especially the specific line change mendezki...worked like a charm. :)

  13. jmlau
    Member
    Posted 4 years ago #

    one more related question....any ideas how to get the text to go under the image, as in the first post? the ALIGN LEFT tag seemed to work before, but now doesn't seem to...

  14. mendezki
    Member
    Posted 4 years ago #

    Alignment and stuff like that are done with css:
    Edit the properties for the images in your cssstyles.php file:

    .entry img
    float:left;
    margin:0pt 10px 10px 0pt;
    }

    to

    .entry img
    margin:0pt 10px 10px 0pt;
    }
  15. jmlau
    Member
    Posted 4 years ago #

    Thanks so much mendezki....that worked for all but the first post....any ideas?

Topic Closed

This topic has been closed to new replies.

About this Topic