WordPress.org

Ready to get started?Download WordPress

Forums

Displaying thumbnail in post (10 posts)

  1. Hippyer
    Member
    Posted 4 years ago #

    Currently I have the thumbnail being displayed on index.php and it works great.
    When I click on the header to read the post, I just see text.
    How can I get the thumbnail to be displayed within the post's content as well?
    http://www.pistolpokerleague.com/blog

  2. Rev. Voodoo
    Volunteer Moderator
    Posted 4 years ago #

    the same way you added it to index.php, add it to single.php (do you want it the same size? Or bigger or anything?)

  3. Hippyer
    Member
    Posted 4 years ago #

    Hello again, I probably want to keep the image the same size but I want to add the menu bar on the right to the single posts as well.

  4. Rev. Voodoo
    Volunteer Moderator
    Posted 4 years ago #

    if you got thumbnail setup in index.php, it'll be no problem to set it up for the post's content as well...

    just place the line of code you place in index.php into single.php in the exact same place.....

    <?php the_post_thumbnail(); ?> or whatever you used....

    as for your second issue, let me take a peek

  5. Rev. Voodoo
    Volunteer Moderator
    Posted 4 years ago #

    OK...you based your theme on the default kubrick theme it looks like. If you want the menu bar to be inserted on single.php you have to compare your index.php with your single.php and look for differences...

    you need to include <?php get_sidebar(); ?> or similar, just like index.php does

    You also need to switch out some class/ID's to make your main content narrower, etc. Basically you need to match up the single.php with the index.php in your theme

  6. Hippyer
    Member
    Posted 4 years ago #

    First issue sorted, :) thanks

  7. Hippyer
    Member
    Posted 4 years ago #

    now I'm getting somewhere

  8. Rev. Voodoo
    Volunteer Moderator
    Posted 4 years ago #

    Sweet!

  9. Hippyer
    Member
    Posted 4 years ago #

    Do you know how I can get the vertical line going beside the menubar?
    Also, Admin section with log in links are not visible on the single.php part.

  10. Hippyer
    Member
    Posted 4 years ago #

    I found how to fix the admin section in sidebar.php but decided to leave it as it is.

    I'm still struggling with the vertical line though.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.