[Resolved] Change comment text and create anchor link to "Leave a comment"

Home Forums Support [Resolved] Change comment text and create anchor link to "Leave a comment"

Home Forums Support Change comment text and create anchor link to "Leave a comment"

  • This topic has 19 replies, 5 voices, and was last updated 5 years ago by Tom.
Viewing 5 posts - 16 through 20 (of 20 total)
  • Author
    Posts
  • #858500
    Tom
    Lead Developer
    Lead Developer

    Try this instead:

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

    Then check the “Execute PHP” checkbox.

    #858511
    Iván

    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.

    #858842
    Tom
    Lead Developer
    Lead Developer

    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;
    }
    #859226
    Iván

    It works!! Thanks so much, Tom!

    #859619
    Tom
    Lead Developer
    Lead Developer

    You’re welcome 🙂

Viewing 5 posts - 16 through 20 (of 20 total)
  • You must be logged in to reply to this topic.