Site logo

Archived topic

Change comment text and create anchor link to "Leave a comment"

19 replies · Started by Gianluca on August 29, 2018

Viewing posts 16–20 of 20

Try this instead:

<a href="<?php echo get_permalink(); ?>#respond">Leave a comment</a>

Then check the "Execute PHP" checkbox.

It works perfectly, Tom! Thanks!

Otherwise, is it posible to style the link? I would like it to be right aligned and with another font.

You'll want to give it a class:

<a class="comment-link" href="<?php echo get_permalink(); ?>#respond">Leave a comment</a>

Then you can style it:

.comment-link {
    float: right;
    font-family: Different Font, sans-serif;
}

It works!! Thanks so much, Tom!

You're welcome :)

This archived topic is closed to new replies.