• Resolved AZBros

    (@azbros)


    Hi,
    I currently have a button style link set up for my “Read More” link. Typically, the “Read More” text will begin with “…” and then say “Read More –>” or something similar. Since my link is set up to look like a button, the “…” is also within the button area.

    I’d like to have “…” be standard text and attached to the final word of the excerpt and then “Read More–>” be the actual link and within the button. Is this at all possible or would it be more trouble than it’s worth? Things look fine the way they are right now, but that one thing has been bugging me. I tried thinking of a way to make the two parts separate, but to no avail. Thanks for any suggestions.

Viewing 2 replies - 1 through 2 (of 2 total)
  • bdbrown

    (@bdbrown)

    Hi AZBros. Quick fix is to move the “…” outside the anchor tag, like so:

    /* change read more text */
    function hu_excerpt_more( $more ) {
        $readmoretext = 'Read more ->';
        return '...<a class="read-more" href="'. get_permalink( get_the_ID() ) . '">' . $readmoretext . '</a>';
    }
    Thread Starter AZBros

    (@azbros)

    Yep, that did it! Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Separate "…" and "Read More"’ is closed to new replies.