Viewing 5 replies - 1 through 5 (of 5 total)
  • what theme are you working with?

    does the parent theme use any filter on ‘the_excerpt’?

    Thread Starter aizea

    (@aizea)

    I’m using ImagPress Theme and i can find only length filter but the theme has a lot of features and maybe I’m missing something…

    https://themeforest.net/item/imagpress-flat-magazine-theme-/6052835

    You should contact a theme author

    Thread Starter aizea

    (@aizea)

    I found this in the parent theme :
    add_filter('excerpt_more', 'new_excerpt_more');

    is it the problem ?

    Thread Starter aizea

    (@aizea)

    Hello again,

    So I contacted the author and he told me to edit filters.php (in parent theme) with this :

    function new_excerpt_more($more) {
        return '...';
    }

    and it’s working ! But… I don’t want to edit my parent theme because I want to be able to update it. So I asked, how can I do it in my child theme ? And He told me to add :

    function my_new_excerpt_more($more) {
         return '...';
     }
    add_filter('excerpt_more', 'my_new_excerpt_more');

    But this is not working, so back to square one…

    If someone has any idea.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Add "…" to the_excerpt in a child theme’ is closed to new replies.