WordPress.org

Ready to get started?Download WordPress

Forums

Facebook Comments
Is there some php code so that I can directly link the comments section? (2 posts)

5 stars
  1. cbeaman
    Member
    Posted 1 year ago #

    Really great app! I would like to be able to put some php code in my main page template so that a user can click on a link and be sent directly down to the comments section of the post.

    Is this possible?

  2. Szyam
    Member
    Posted 1 year ago #

    You probably figured it out by now but you can achieve what your looking for with good ol' html. And an <a> tag at the top of the page where the href="" and id name thats at the bottom, just above the comments. Like this:

    top of page: </a><a href="#comments">Go to comments</a>

    ......

    bottom of page: <div id="comments">....... </div>

    [Please post code & markup between backticks or use the code button. Your posted code has now been permanently damaged by the forum's parser.]

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.