Viewing 4 replies - 1 through 4 (of 4 total)
  • Branko

    (@brankoconjic)

    The easiest way is to add “More” block at the end of your post content.
    Like this.

    The theme first checks if custom Excerpt has been entered, then it checks for <!-- more --> tag.

    If you have a large number of posts and you are unable to add the tag on each of your posts that you want to display full instead of excerpt, then you would have to override the sinatra_excerpt function in your child theme. The function is located in sinatra ? inc ? template-tags.php.

    Thread Starter devaluas

    (@devaluas)

    Thanks a lot!

    Thank you for this helpful response.

    I’m having the same issue.

    Can you give a bit more information about overriding the function?

    I tried removing the function entirely. But this stopped the blog from loading, and I had to restore from a backup. So clearly I was doing it wrong.

    (Apologies, I don’t have much PHP knowledge.)

    Thanks again.

    Branko

    (@brankoconjic)

    The best way to override theme functions is through a child theme.

    It’s a simple customization so I modified the Sinatra Child theme for you.

    You can download it from this link.

    The modified child theme contains this function:

    /**
     * Redefine sinatra_excerpt function.
     * 
     */
    function sinatra_excerpt( $length = null, $more = null ) {
        the_content();
    }

    Once you download the modified Sinatra Child theme, simply install it and it should work.

    If you don’t need the ‘Read More’ link, you can remove it from the Customizer.

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Full Content instead of excerpt’ is closed to new replies.