How to link to "be the first to comment" section on other pages?

Discussion in 'ClassiCraft WordPress Theme' started by M5LASTER, Feb 24, 2014.

  1. M5LASTER

    M5LASTER Member

    Joined:
    Oct 21, 2013
    Messages:
    232
    Likes Received:
    0
    Hi there,

    I would like to know how to link to the comment section directly. There are two types of links that I need help with ...

    1) On pages (Or posts) that don't have comments yet, I'd like to add "be first to comment" link, but I'd like the link to point directly to the comment box where the user can directly write a comment.

    The page content can be large enough where the user has to scroll down several pages, so having the "be the first to comment" link point directly to the comment box would be great.

    2) I'd like to know how to generically have links to comment box of any page or post, so if the user is reading on a specific and decides to write a comment on a related page/post, I'd like to provide a link to the comment box of the related page/post perhaps on a sidebar widget.

    In short, from a page/post, I'd like to have a direct link to another page's/post's comment box section.

    Kindly, provide guidance on how to achieve this.

    Thanks,
    Mike
     
  2. Nitesh

    Nitesh Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    5,165
    Likes Received:
    160
    Hello Mike,

    Posts or ads already have comment section. To add comment box in the thee pages.
    Open "page.php" file and add code given below as shown in the image.

    Code:
     <div class="clear"></div>
                    <?php comment_form(); ?>
    classicrafttheme.png

    Thanks & Regards
    Nitesh Raghuwanshi
     

Share This Page