• Resolved omid23

    (@omid23)


    Hi
    I want to display whole of the posts on homepage, but for displaying the whole post must click on the Title of posts now.
    I replaced this code(<?php the_content(); ?>) with (<?php the_excerpt(); ?>) in this pages:
    content-single.php & content-gage.php &
    content.php
    & index.php
    but it didn’t work.
    Please guide me
    REGARDS

Viewing 6 replies - 1 through 6 (of 6 total)
  • First undo all the changes you did to this theme. It’d be best to delete and reinstall this theme.

    Then edit the content.php file alone, find the following lines

    <?php if(strlen(get_the_title()) >= 87)
    echo substr(get_the_excerpt(), 0,120)."....";
    else if(strlen(get_the_title()) >= 40)
    echo substr(get_the_excerpt(), 0,150)."....";
    else
    echo substr(get_the_excerpt(), 0,195)."...."; ?>

    Comment them or delete them and use the_content() function

    <?php the_content();
    /*if(strlen(get_the_title()) >= 87)
    	echo substr(get_the_excerpt(), 0,120)."....";
    else if(strlen(get_the_title()) >= 40)
    	echo substr(get_the_excerpt(), 0,150)."....";
    else
    	echo substr(get_the_excerpt(), 0,195)."....";*/ ?>

    If you update the theme all these changes will be overwritten so I suggest you do this on a child theme.

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    Then edit the content.php file alone, find the following lines

    Just to re-iterate jesin’s advice at the end: make a child theme first, activate it, and then make a copy of content.php into the child theme directory.

    Then you can safely edit that copy.

    Thread Starter omid23

    (@omid23)

    my friend Jesin
    thank you so much!!!!!
    The problem is completely solved.
    People like you are rare that help others Without asking any money.
    sādara artha

    You’re most welcome 🙂

    Please mark this thread as resolved so that it’ll be helpful to others too.

    Theme Author Rohit Tripathi

    (@rohitink)

    @Jesign

    I Really Appreciate you for providing help on my theme. Thank you very much.

    Always happy to help Rohit. I learn a lot about wordpress theme designs each time I help someone.

    Ummm you’ve added a g to my name (^0_0^)

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How do I show a full post, NOT an excerpt?’ is closed to new replies.