0

So far I have only been able to find removing "read more" completely from the main page or setting a post length. On our blog, sometimes our posts are short (and we don't want to use the "excerpt" function) and therefore do not need the "read more", while other times they are long and the authors want to insert "read more" at their personal preferred spot. Is there some way to include "read more" just when it is inserted manually? We are using the Hueman theme. Thank you!

2
  • Normally, this is not a theme setting. Can you code? Commented Oct 20, 2017 at 19:45
  • Can I code? I am very new to coding.
    – user129990
    Commented Oct 20, 2017 at 22:47

1 Answer 1

2

If you have a blog with different articles on your start page you have to change the "content.php" in your theme folder. On line 27 (if the file is not changed) you should change the function "the_excerpt()" to "the_content()" which then fetches the complete post until a manually set "read more" in the respective post. That should do the trick, but maybe you have to tweak the css too (and/or your posts), to make it look good.

2
  • I changed the "the_excerpt()" to "the_content()" in the functions.php file to fetch the complete post. I don't see this in the theme "content.php" file?
    – user129990
    Commented Oct 20, 2017 at 23:04
  • Then your theme was already changed by someone else? Does ist work for you as intended? You should comment what you changed and why and also maybe save the original line as a comment, so that you can easily go back if something strange occurs.
    – Molle
    Commented Oct 20, 2017 at 23:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.