Comments Text as link

I would like the make the comments text a link to the main article (title link). Not a php expert although I have made some minor changes to the main template. I would like to have it so that when someone clicks on the Comments text they go to the main article or right to the comments section of the article.

Anyone have an idea what to change in the index.php of zenpage? For some reason I keep screwing it up putting the href in the wrong place in the code.

Thanks,
Dominic
www.photofi.com

Comments

  • acrylian Administrator, Developer
    Do you mean the comments counter ("Read/Leave Comments: 0")? This should work:
    `<?php echo "<a href='".getNewsTitleLink()."'>".gettext("Comments:").getCommentCount()."; ?>`
  • Mmm... I'm getting a parse error for the line below:

    Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in /home/html/themes/zenpage/index.php on line 58

    I've tried some variations with no success.

    Thanks,
    Dominic
    www.photofi.com
  • acrylian Administrator, Developer
    I forgot a closing quote: `<?php echo "<a href='".getNewsTitleLink()."'>".gettext("Comments:").getCommentCount().""; ?>`
Sign In or Register to comment.