Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

  1. Index
  2. » Archives
  3. » Anchor Links

#1 2005-12-12 16:49:59

stirman
Member
Registered: 2005-12-02
Posts: 36

Anchor Links

Trying to tweak my site a bit and noticing than when someone clicks on the comment invite, the anchor link isn’t working right, it doesn’t scroll the page to the comment form.

The anchor link it’s using is #comment, but I need to change it to #txpCommentInputForm. I can’t seem to find where in the code to change this! Any ideas?

Many Thanks,
-stirman

Offline

#2 2005-12-12 17:54:21

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Anchor Links

The comment invite links to the comments rather than the comment form, and the link is hard-coded, I’m afraid. You can make your own, though:

<txp:if_comments_allowed><p><a href="<txp:permlink />#txpCommentInputForm"><txp:comments_invite textonly="1" /></a></p></txp:if_comments_allowed>

Last edited by Mary (2005-12-12 17:54:43)

Offline

#3 2005-12-12 19:21:59

stirman
Member
Registered: 2005-12-02
Posts: 36

Re: Anchor Links

Thanks, that did the trick! But now the comment count is being displayed again.. is there a source file where I can comment out the comment count?

Thanks!!!

-stirman

Offline

#4 2005-12-12 19:41:58

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: Anchor Links

Have you tried <code><txp:comments_invite showcount=“0” /></code>?


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#5 2005-12-12 19:47:02

stirman
Member
Registered: 2005-12-02
Posts: 36

Re: Anchor Links

Bah, she listed a “textonly” field that I was mistaking for the “showcount” field… my apologies. Works perfect, thanks fellas! and fellettes :)

-stirman

Offline

  1. Index
  2. » Archives
  3. » Anchor Links

Board footer

Powered by FluxBB