• Resolved bencico

    (@bencico)


    Hi,
    Thank you for the themes you created and for the support you provide even for the free version!
    I’m using this ascend theme on a project, and I need to show the post excerpt without the “Read more” link. As I saw, ascend adds the link at ascend/lib/cleanup.php:85. I was trying to override this function in my child theme for ascend, but then php says that the function can not be redeclared in the main theme.
    How can I remove the link (besides hiding it with css)?
    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hey,
    In a child theme you can add this in your functions.php file:

    function custom_child_init() {
    remove_filter('excerpt_more', 'ascend_excerpt_more');
    remove_filter( 'get_the_excerpt', 'ascend_custom_excerpt_more' );
    }
    add_action( 'init', 'custom_child_init' );

    Ben

    Thread Starter bencico

    (@bencico)

    Hi Ben,
    Of course, I didn’t think of that… thank you for your help!
    Ben

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Remove “Read more” link from excerpt’ is closed to new replies.