• Hi, I would really appreciate any help with this problem I have searched all the code but haven’t found what is causing the summarizing.

    site url: https://www.leannemullen.com/test
    theme: https://www.dessign.net/phototheme/

    If you go onto the homepage you can see that the text under the thumbnails on the homepage is only a percentage of the actual text in the post, with a suffix of “…”

    There seems to be some code in the theme that making the homepage post thumbnails only display a percentage of the post text, I would like to display all the text in the post (which is just a few words in most cases).
    Thanks in advance I would really appreciate any ideas…

Viewing 3 replies - 1 through 3 (of 3 total)
  • in index.php of your theme, find:

    <p><?php $temp_arr_content = explode(" ",substr(strip_tags(get_the_content()),0,130)); $temp_arr_content[count($temp_arr_content)-1] = ""; $display_arr_content = implode(" ",$temp_arr_content); echo $display_arr_content . '...'; ?></p>

    replace with:

    <?php the_content(); ?>

    (untested, might change the layout ?)

    Thread Starter John Malcolm

    (@john-malc)

    Hi, thanks for the help.
    I tried that and it now displays the full text which is great!!
    …but naturally enough now it seems to be also displaying the images from the post you don’t happen to know how to just show the text and not the images?

    Thread Starter John Malcolm

    (@john-malc)

    Hi, never mind that last post :)…thanks for the help but I got it working by replacing:

    <?php the_content(); ?>

    With

    <?php the_excerpt();?>

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Theme summarizing post text under thumbnails on homepage.’ is closed to new replies.