Page 1 of 1

Adding a link

Posted: Sun Apr 09, 2006 7:20 pm
by Brian1969
Hi,

I have a quick question. I want to add a link to a discussion forum in each of my posts, alongside the comments/trackback links at the end of the post.

What file would I edit (and how) to show the link and have it open in a new window?

Thanks!

Posted: Sun Apr 09, 2006 8:00 pm
by Col. Kurtz
edit the entries.tpl of your template.
to open a link in a new window use

Code: Select all

target="_blank"
inside the link tag.

e.g.:

Code: Select all

<a href="http://yourdomain.com/forum" target="_blank">text</a>

Posted: Sun Apr 09, 2006 8:08 pm
by Brian1969
Yes, I know how to do the html, its PHP that I don't understand. Where in this file, exactly, do I add the code for the link?

Posted: Sun Apr 09, 2006 9:42 pm
by jhermanns
Hi Brian,

just open up the entries.tpl file in your templates/default/ folder, or, if you use another template than the default, look for it's entries.tpl file. Then add the link at the desired position.