• Resolved bdugg

    (@bdugg)


    Hi,

    In the Magazine Homepage widget using the two-columns style, I’m working on adding a “read more” link/button next to the article title. To make it easy I figured I’d be able to just copy paste this:

    <?php the_title( sprintf( '<h4 class="read-more"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h4>' ); ?>

    This does generate the additional link to the article I want, but I don’t know how to format the output text so that it reads “Read More” instead of displaying the title of the post it leads to. How do I change that?

Viewing 1 replies (of 1 total)
  • Theme Author ThemeZee

    (@themezee)

    Hi there,

    Thanks for using Beetle.

    You can use this HTML code:
    <a href="<?php echo esc_url( get_permalink() ) ?>"><?php esc_html_e( 'Read more', 'beetle' ); ?></a>

    Cheers,
    Thomas

Viewing 1 replies (of 1 total)
  • The topic ‘Changing link text in Magazine Homepage widget’ is closed to new replies.