Show post-thumbnails on the single page (4 posts)

  1. iszlq
    Posted 3 years ago #

    I'm trying to create a child theme that will allow me to show post-thumbnails as the main image on the single page. I'm a little baffled about how to do it because the code in single.php is not familiar to me. I think I see it in the index.php file, but I'm not sure.

    How would I do this?

    I've also got a tiny white line on the right side of the main image on the home page that I can't seem to find the reason for. I am also having some trouble changing colors in the child theme stylesheet. I'm assuming they are generated programmatically in the document. How can I override them?




  2. iszlq
    Posted 3 years ago #

    Oops, I forgot to link to my test page:


  3. Vichet Sen
    Posted 3 years ago #

    To use post thumbnail, you need to enable it first if your theme doesn't do it for you. Once it is enabled, you see a feature image link on the right side when you insert/edit a post.

    To show the post thumbnail, you featured image must be set. After that, you can modify your single.php to show the post thumbnail by using the function: the_post_thumbnail. Here is the link for detail about it: http://codex.wordpress.org/Post_Thumbnails.

    To modify a stylesheet from your child theme, you can modfiy style.css inside your child theme folder. When you write the stylesheet, you can start by adding "body" before the selector or you can force it by using "!important".

  4. mathijsolij
    Posted 3 years ago #

    Dear Members,

    Got an issue with my website posts using pinboard theme. I would like to have my posts layout like http://blog.thuisbarista.nl/ (thumnail picture on the left and small intro on the right with "continue reading"). My website is http://www.barista-academy.org.

    Unfortunately I do not have a clue how to change this. Maybe someone can help me out or instruct me on what to do.

    Many many thanks )))

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic