• Resolved burundian

    (@burundian)


    Hello, I would like to know if someone could help me modify the functions.php of my child theme or the plugin it self to make the excerpt Clickable ?

    I would like this to link to the single post.

    Sorry, my english is so so.

    Thank you in advance.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor ageproem

    (@ageproem)

    Hi,
    What do you mean with excerpt clickable? It has already had read more button which is clickable to its single post.

    Thread Starter burundian

    (@burundian)

    I want people to be able to click on the excerpt text it self.

    I found this code:

    function clickable_excerpt( $excerpt ) {
    	return '<a href="'. get_the_permalink() .'">'. preg_replace( '|</?a.*?>|i', '', $excerpt ) .'</a>';
    }
    add_filter( 'get_the_excerpt', 'clickable_excerpt' );

    But I dont know how to adapt it.

    Thank you.

    Plugin Contributor ageproem

    (@ageproem)

    Hi,
    Oh I see now.
    Sure you can make excerpt text itself clickable by using that code.
    Just put that code into functions.php on your theme. But make sure your theme use the_excerpt methode to output its exceprt.

    Thread Starter burundian

    (@burundian)

    It doesn’t work. This code only works if the plugin is not active, but if the plugin is active, the code doesn’t work.

    Plugin Contributor ageproem

    (@ageproem)

    Hi,
    If you still want to use the plugin, try add this code to your functions.php

    remove_action( 'wp_head', 'tonjoo_ecae_remove_all_filters' );

    Thread Starter burundian

    (@burundian)

    Thank you very much, It now works.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to make the excerpt Clickable ?’ is closed to new replies.