• Resolved WaterBot

    (@bookacan)


    Hello Team,

    Have the issue of “Read more” button not appearing in both list & grid view.
    We havent changed the sjb templates at all and tried adding the code you mentioned to theme functions.php, but still the button doesnt appear. Any thing else that we can debug/look at?

    —– code added to functions.php —–
    function wp_excerpt_more( $more ) {
    return sprintf( ‘%2$s‘,
    get_permalink( get_the_ID() ),
    __( ‘Read More’, ‘textdomain’ )
    );
    }
    add_filter( ‘excerpt_more’, ‘wp_excerpt_more’ );
    —— end of code ———————

    Thanks in advance!

Viewing 1 replies (of 1 total)
  • Plugin Author PressTigers

    (@presstigers)

    Above code just showing text because you are not linking anchor tag with the job detail page.

    Please use the following code in functions.php. It’s tested code snippets and working perfectly fine.

    
    function wp_excerpt_more($more) {
        return sprintf( '<a class="read-more" href="%1$s">%2$s</a>',
            get_permalink( get_the_ID() ),
            __( 'Read More', 'textdomain' )
        );
    }
    
    add_filter('excerpt_more', 'wp_excerpt_more');
    

    Thanks & Regards,
    PressTigers

Viewing 1 replies (of 1 total)

The topic ‘Read More Button Not Appearing’ is closed to new replies.