[Resolved] Read more link instead of button

Please login to receive premium support.

Support for the free plugin can be found here.

Home Forums Pro Support Read more link instead of button

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #10557
    Michael
    Participant

    Hi,

    I want to remove the Read More button and just have a “Read more” text link straight after the excerpt …

    What is the best way to achieve that? Thanks

    #10560
    Tom
    Keymaster

    Hi there,

    Give this function a shot:

    add_filter( 'wpsp_ellipses', function() {
        return sprintf( 
            '...<a href="%1$s">Read more</a>',
            get_permalink()
        );
    } );
    #10561
    Michael
    Participant

    Thanks Tom,

    It added a link to the first post in the section, but not the other two.

    And buttons still there. I will add test site link back to first post.

    #10562
    Michael
    Participant

    Ah, there is no edit function to add url

    #10564
    Michael
    Participant
    #10578
    Tom
    Keymaster

    Do those other posts have a manual excerpt applied to it? If so, what happens if you let WordPress handle the excerpt automatically?

    To remove the button, you need to remove the Read more text in your list settings.

    #10582
    Michael
    Participant

    Thanks Tom, all working good now!

    #10587
    Tom
    Keymaster

    You’re welcome 🙂

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.