Tagged: 

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #137711
    sr15673
    Participant

    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!

    #138388
    Skandha
    Participant

    @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,
    Skandha

    #139719
    sr15673
    Participant

    Hi 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

    #139829
    Skandha
    Participant

    @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,
    Skandha

    #139883
    sr15673
    Participant

    Hi Skandha,

    If you can provide further instructions this will be greatly appreciated!

    Many thanks, Sophie

    #139911
    Skandha
    Participant

    @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

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Editing excerpt length displayed on home page’ is closed to new replies.