"Continue Reading" link to appear with Read More Tag - Acme Themes

Best Premium and Free Responsive WordPress Themes Forums AcmeBlog "Continue Reading" link to appear with Read More Tag

This topic contains 3 replies, has 2 voices, and was last updated by  acmesupports 1 year, 11 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #9710

    JaLiRa
    Participant

    Hi,

    I am refering to Travelling Freelancer’s question as I also like to add something that says “Continue Reading” at the end of the text.

    As you recommended I tried to “Please paste the below code on ‘template-parts/content.php’ below the line 43. i.e. below the code acmeblog_blog_content_layout(); …

    Unfortunately in my ‘template-parts/content.php’ is no such line acmeblog_blog_content_layout();. It is also not in any other line. Do you mind to give me a hint, if something changed in the theme and where I do have to paste “<p>“>Read More</p>” to?

    Thank you very much in advance
    JR

    #9723

    acmesupports
    Moderator

    Hello,
    You can find that codes inside acmethemes/hooks/excerpts.php file. Find the function ‘acmeblog_excerpt_more ()’ and replace the previous given code there.
    Thank you

    #9800

    JaLiRa
    Participant

    Thank you very much for your replay. To ensure I do understand correctly I would like to clarify. I have found in acmethemes/hooks/excerpts.php the following lines:

    if ( !function_exists(‘acmeblog_excerpt_more’) ) :
    function acmeblog_excerpt_more($more) {
    return ‘…’;
    }

    You are saying to replace the given code. Does that mean the following?
    if ( !function_exists(‘acmeblog_excerpt_more’) ) :
    <p>“>Read More</p>
    }

    #9805

    acmesupports
    Moderator

    Add the below code by replacing the previous codes:

    if ( !function_exists('acmeblog_excerpt_more') ) :
        function acmeblog_excerpt_more($more) { 
    
        return '<a href="'.get_permalink().'">'.__('Read More').'</a>';
        }
    endif;
    add_filter('excerpt_more', 'acmeblog_excerpt_more');

    Make sure, there is no any code errors while adding the codes.
    Let us know about the result.

    Regards,
    Acme Supports

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘"Continue Reading" link to appear with Read More Tag’ is closed to new replies.