New Landing How can we help? Themeforest Theme Support Joyn How to manage excerpt lengh in Joyn?

Viewing 5 posts - 1 through 5 (of 5 total)
  • Posted in: Joyn
  • #305928
    mengeco
    Member
    Post count: 558

    Hello,
    In another Joyn site, for excerpt lengh, I used this code in functions.php but it no longer works in a new site:

    Function custom_excerpt_length ($ length) {
    Return 20;
    }
    Add_filter ('excerpt_length', 'custom_excerpt_length', 999);

    How to manage excerpt lengh in Joyn?

    Regards

    #306009
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    it could be because your capital letters in the code.

    function custom_excerpt_length ($ length) {
    return 20;
    }
    add_filter ('excerpt_length', 'custom_excerpt_length', 999);

    -Rui

    #306026
    mengeco
    Member
    Post count: 558

    Ok thanks but It’s predictive typing that added the capital letter “F” but it does not exist in functions.php

    PS: I use Virtual composer.

    #306035
    mengeco
    Member
    Post count: 558

    Sorry, it’s work now !!! 😉
    Thanks Rui !

    #306040
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    No problem. Glad I could help.

    -Rui

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register