coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: JSan on March 15, 2004, 12:11:28 AM

Title: How to make title image into a link
Post by: JSan on March 15, 2004, 12:11:28 AM
HI, I am using the Hardwired theme. I am interested in either creating a button to link back to my main page, or to have the top graphic to be a link back to the main site.

Can anyone tell me how to do this and direct me with instructions. I'm pretty new to all this and don't know what I would need to edit
Title: "Home" link
Post by: jmc on March 15, 2004, 12:47:16 AM
Hi, Jsan!
You can do this by editing your "theme.php" file in the Hardwired folder. You only need to duplicate one of the entries in the menu list, then edit the specific details for your new link.
E.G. - To create a link back to my Phpbb Forums, I duplicated the "Search" entry, pasted it underneath and edited it to read as follows:
Quote<td><img name="spacer" src="images/spacer.gif" width="5" height="25" border="0" id="spacer" alt="" /></td>
                                        <td><img name="buttonleft1" src="themes/hardwired/images/buttonleft1.gif" width="7" height="25" border="0" id="buttonleft1" alt="" /></td>
                                        <td background="themes/hardwired/images/buttoncenter1.gif">
                                                <a href="/phpbb2">Forums</a>
                                        </td>
                                        <td><img name="buttonright1" src="themes/hardwired/images/buttonright1.gif" width="7" height="25" border="0" id="buttonright1" alt="" /></td>
The bit in red is obviously the important bit! Insert the appropriate path and text label for your new button and you're done!
Hope this helps.
John Mc
Title: How to make title image into a link
Post by: JSan on March 15, 2004, 08:46:45 AM
many thanks for your help, I will try this out!