Support » Theme: Horas » Read More Tag Not Clickable

  • Hello, I am running Horas theme and when I go to add the ‘read more’ tag to my posts, I do see it on one post on my homepage but the text itself is not clickable. It says ‘more’ but it is not an actual link. On the other posts I’ve added it to, I don’t see it at all. I’ve Googled and searched the forums but I am not seeing a solution. Please help!

    http://www.sweepingrevelations.com/

Viewing 13 replies - 1 through 13 (of 13 total)
  • Sorry I was unable to find where is the Read more text for posts on homepage.
    As per my review their is not such text available can you please check.

    It is only showing on the post entitled “the dreaded dailies”. It says “more”, but it is not clickable. The others do not show at all.

    Can You Please add the below code in your function.php file:

    function new_excerpt_more($more) {
        return '';
    }
    add_filter('excerpt_more', 'new_excerpt_more', 21 );
    
    function the_excerpt_more_link( $excerpt ){
        $post = get_post();
        $excerpt .= '... <a href="'. get_permalink($post->ID) . '">Read More</a>.';
        return $excerpt;
    }
    add_filter( 'the_excerpt', 'the_excerpt_more_link', 21 );
    function new_excerpt_more($more) {
        return '';
    }
    add_filter('excerpt_more', 'new_excerpt_more', 21 );
    
    function the_excerpt_more_link( $excerpt ){
        $post = get_post();
       $excerpt .= '... <a href="'. get_permalink($post->ID) . '">Read More</a>.';
        return $excerpt;
    }
    add_filter( 'the_excerpt', 'the_excerpt_more_link', 21 );

    Wow. Well I am not a developer but I have found the functions.php file… where would I put this? And would I just copy and paste it in there?

    Just copy paste it at the bottom of file.

    Okay I added it at the bottom; started a new line but it messed my page at the top so I took it out. Should I not skip a line? The last thing there is

    ?>

    so I pasted on this line where I am writing now.

    Sorry for the troubles.

    Just post above the ?>

    Okay done. Seems to be the same.

    It looks like this now at the bottom:

    `Add notice when activate the theme
    */
    add_action(‘admin_notices’,’horas_notices’);
    function horas_notices() {
    echo ‘<div class=”updated”><p>’.__(‘Hello there. Thank you for using <b>Horas Theme</b> and I hope you have a good experience with this theme. If you want to read more about this theme please visit Theme page.‘,’horas’).'</p></div>’;
    }

    function new_excerpt_more($more) {
    return ”;
    }
    add_filter(‘excerpt_more’, ‘new_excerpt_more’, 21 );

    function the_excerpt_more_link( $excerpt ){
    $post = get_post();
    $excerpt .= ‘… ID) . ‘”>Read More.’;
    return $excerpt;
    }
    add_filter( ‘the_excerpt’, ‘the_excerpt_more_link’, 21 );
    ?>

    This should work can you try this also:

    // Replaces the excerpt "more" text by a link
    function new_excerpt_more($more) {
           global $post;
    	return '<a class="moretag" href="'. get_permalink($post->ID) . '"> Read more...</a>';
    }
    add_filter('excerpt_more', 'new_excerpt_more');

    Would not submit and I can’t seem to access the site at all now.

    I ended up having to contact my host so they could switch me to another theme so I could access the site and remove the code, then I switched back to Horas fine. I’ll live with not having the read more tag. Thanks for the help.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Read More Tag Not Clickable’ is closed to new replies.