Adding a link

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
Brian1969
Regular
Posts: 78
Joined: Tue Mar 22, 2005 7:03 pm
Contact:

Adding a link

Post 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!
Brian
Col. Kurtz
Regular
Posts: 450
Joined: Thu May 26, 2005 10:43 am
Location: Bonn, Germany
Contact:

Post 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>
Marc
Brian1969
Regular
Posts: 78
Joined: Tue Mar 22, 2005 7:03 pm
Contact:

Post 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?
Brian
jhermanns
Site Admin
Posts: 378
Joined: Tue Apr 01, 2003 11:28 pm
Location: Berlin, Germany
Contact:

Post 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.
Post Reply