Tagged: Excerpt
- This topic has 5 replies, 2 voices, and was last updated 5 years, 7 months ago by Skandha.
-
AuthorPosts
-
April 11, 2018 at 11:08 pm #137711sr15673Participant
Hi there,
We would like to know how we can customise the excerpt length for each section (e.g. courses, about the university etc)? It’s very restrictive to have a set excerpt length (e.g. 40 words) for every section as some excerpts are then cut off mid-sentence. We have set text that we would like to display on the home page.
Can anyone advise how we can get this updated? Some excerpts we would like to display on the home page are only 13 words, others are 25 words so there is a big variance.
Thanks for your help!
April 12, 2018 at 7:14 am #138388SkandhaParticipant@sr15673: You can achieve this by selecting Courses, Our Professors, Featured Content or any content type as Post.
Then you can go to the respective post and do the following to select the amount of text you want to display as excerpt text in each post.
Go to => Dashboard => Posts => Edit a post => Click on Screen Option at top right and check the Excerpt Option => After checking the Excerpt Option you will find a Excerpt text area at the bottom of the post where you can add the excerpt text you want to display and Update the post.
I hope this makes sense and will help resolve the issue.
Let me know if you are not clear about this.
Regards,
SkandhaApril 12, 2018 at 7:11 pm #139719sr15673ParticipantHi Skandha,
Thanks for your advice. We would like the featured content / courses to link to a ‘page’ rather than a ‘post’.
Is there a way to modify the excerpt lengths displayed for pages? I.e. for one of the courses we want to show 11 words (teaser text) and for another course we want to have a 25 word teaser text sentence displaying.
Under the featured content, as part of the teaser text it is also pulling through the letter X which is actually an ‘apply now button’ on one of our pages.
Any further advise you can offer would be appreciated.
Thank you
April 16, 2018 at 1:14 am #139829SkandhaParticipant@sr15673: To use the excerpt text option in pages like the option in posts you will need to create a child theme and add a bit of code to your functions.php file. Let me know if you are comfortable with child theme customization then I’ll further assist you.
Regards,
SkandhaApril 16, 2018 at 9:20 pm #139883sr15673ParticipantHi Skandha,
If you can provide further instructions this will be greatly appreciated!
Many thanks, Sophie
April 17, 2018 at 3:48 am #139911SkandhaParticipant@sr15673: First of all you will need to create a child theme. For that you can use the Generate Child Theme Plugin. Activate and use this plugin to create a child theme of your Clean Education Pro Theme.
After creating the child theme, go to the child theme folder and open functions.php file and add the following
code.add_post_type_support( 'page', 'excerpt' );
After adding the above code you will find the excerpt check box option in the Screen Options when you go to Edit a Page.
Then you can check the excerpt option and you will find an excerpt text area below the page content.
There you can put in the text you want to display as excerpt for the page.This way you can achieve different excerpt length or text for different page.
Let me know if you have any doubts regarding this.
Regards,
Skandha -
AuthorPosts
- The topic ‘Editing excerpt length displayed on home page’ is closed to new replies.