Display featured image on top corner of article?

Discussion in 'ReThink WordPress Theme' started by ttmcommunicatie, Jan 3, 2015.

Thread Status:
Not open for further replies.
  1. ttmcommunicatie

    ttmcommunicatie New Member

    Joined:
    Dec 12, 2014
    Messages:
    6
    Likes Received:
    0
    Hi,

    Is it possible to show the featured image in the top left or right corner of a blog / review? So the image will be used when people share the article on social media media.
    Hope to hear from you.

    Kind regards,
    Leon
     
  2. Pramod

    Pramod Guest

    Joined:
    Aug 8, 2014
    Messages:
    2,847
    Likes Received:
    63
    Hello Leon,
    For this you have to follow two steps:

    Step 1:

    PHP:
    <?php if ( has_post_thumbnail() ) {
                                        
    the_post_thumbnail();
                                            }
                                      
    ?>

    Please use this code in single.php file
    Follow below image.
    rethinkblog-thumb-5jan.png


    Step 2:

    Paste the code given below in Custom CSS section
    (Appearance -> Theme Options -> Styling Options -> Custom CSS) of your dashboard.

    Code:
    img.attachment-post-thumbnail.wp-post-image {
    padding: 5px;
    border: 1px solid #E1E1E1;
    margin-top: 10px;
    }




    Thanks & Regards
    Pramod
     
  3. ttmcommunicatie

    ttmcommunicatie New Member

    Joined:
    Dec 12, 2014
    Messages:
    6
    Likes Received:
    0
  4. Pramod

    Pramod Guest

    Joined:
    Aug 8, 2014
    Messages:
    2,847
    Likes Received:
    63
    Hello Leon,

    Paste the given code after two line or

    after </ul>


    and put the given CSS code.

    Thanks & Regards
    Pramod
     
  5. ttmcommunicatie

    ttmcommunicatie New Member

    Joined:
    Dec 12, 2014
    Messages:
    6
    Likes Received:
    0
    Is this correct?[​IMG]
     
  6. Pramod

    Pramod Guest

    Joined:
    Aug 8, 2014
    Messages:
    2,847
    Likes Received:
    63
    Hello,


    Yes this is correct, Please apply css for border.

    Code:
    .content_bar.product_detail .feature_content img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ccc;
    margin: 10px 15px 5px 5px;
    float: left;
    box-shadow: inset 1px 1px 10px #ccc;
    }


    Thanks & Regards
    Pramod
     
  7. ttmcommunicatie

    ttmcommunicatie New Member

    Joined:
    Dec 12, 2014
    Messages:
    6
    Likes Received:
    0
  8. praveen

    praveen Support Staff

    Joined:
    Jan 1, 2015
    Messages:
    2,344
    Likes Received:
    67
    Hi Leon,

    Try this code in custom css.

    Code:
    img.attachment-post-thumbnail.wp-post-image {
    float: left;
    margin: 10px;
    }
    If it not works then send me your login details at [email protected].

    Thanks
    Praveen
     
  9. ttmcommunicatie

    ttmcommunicatie New Member

    Joined:
    Dec 12, 2014
    Messages:
    6
    Likes Received:
    0
    Yeah! Now it is working! Thanks Praveen and Pramod!
     
Thread Status:
Not open for further replies.

Share This Page