• Resolved Raj

    (@rajpbm)


    In my blog thumbnails not showing in related posts. I think its happening because i didn’t set images as a featured image. I insert image directly in articles. So Is that possible to show images in “You may also like” ?
    If yes then can we show more than 3 related posts ?
    My site – https://www.quotesimages.org

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi there,
    I am afraid you will need to add featured images to your posts in order to have them rendered in your related section.
    You can change

    <?php $related = ci_get_related_posts( get_the_ID(), 3 ); ?>
    

    to

    <?php $related = ci_get_related_posts( get_the_ID(), 6 ); ?>
    

    in part-related.php to show more related posts.
    Try installing the WP Editor plugin to enhance the default editor and then navigate to the /themes/olsenlight/ folder to find the file.

    If you decide to proceed with this modification I would suggest you create a child theme, copy over the files you are editing and make the modifications there. This will allow your changes to survive future theme updates. If you directly edit the theme’s files, all changes will be lost once you update.

    Have a look at this guide to learn more about child themes and how to create one
    https://www.cssigniter.com/ignite/beginners-guide-child-themes/

    • This reply was modified 7 years, 9 months ago by Fotis.
    Thread Starter Raj

    (@rajpbm)

    Thanks for reply.

    OK I’ll set featured images in every post for related posts thumbnails but Is it possible to turn off that images from post page ?

    Thread Starter Raj

    (@rajpbm)

    I used this code

    <?php $related = ci_get_related_posts( get_the_ID(), 6 ); ?>

    Its working but all alignment has gone.

    See for example –

    https://www.quotesimages.org/each-step-takes-closer-to-goal/
    https://www.quotesimages.org/we-love-life-because-we-are-used-to-loving/

    I know it’s due to the images size.

    I think we can do 2 things –

    1st – resize all images in same size
    So tell me what is the best size for these thumbnails ?

    2nd – More gap between 1st row and 2nd row.

    Suggest me what to do in this condition ?

    Hi there,
    You will just need to add featured images with the same height or with height larger than 435px.
    Or you can just paste this

    @media(min-width:768px) {
        .entry-related .row .col-sm-4:nth-of-type(3n+1) {
            clear: left;
        }
        .entry-related .entry-title {
            margin-bottom: 10px;
        }
    }

    in your custom CSS box.

    Now for your second(opened in another thread) question, I will answer here.

    Add this to show featured images in your “Theme – Latest posts” widget

    .widget_ci-latest-posts .entry-featured{
     display:block;   
    }

    in your custom CSS box

    Thread Starter Raj

    (@rajpbm)

    Wow! What a support.
    Your support team is really awesome.

    Your response is too fast and you solved all my issues queries easily.
    All codes are working fine.

    Thanks a lot.
    I would like to purchase Olsen pro premium theme just because your support.
    ??

    Thank you so much for your great feedback!!

    You are more than welcome to check our premium version of Olsen.

    • This reply was modified 7 years, 9 months ago by Fotis.
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Thumbnails not showing’ is closed to new replies.