Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Sign In
Not a member yet? Click here to register.

How to make top Logo Image in theme Clickable to the home page?

First off I am using the Fusion_COD theme. I am very new to PHP I have only used HTML for many years. I am trying to make the main logo image clickable to the main page. Standard html <a hef> seems to break the site. Any advice on how to write would be appreciated.
CodeDownload  
//Fejléc rész
echo "<table cellpadding='0' cellspacing='0' style='width:990px;' align='center'>\n<tr>\n";
echo "<td class='fejlec'><center><img src='".THEME."images/logo.png' align='left' /></center></td>\n";
echo "</tr>\n</table>\n";

[/code]
Megasporwic,
You're so close to the answer.

Open theme.php:
Change
CodeDownload  
//Fejléc rész
echo "<table cellpadding='0' cellspacing='0' style='width:990px;' align='center'>\n<tr>\n";
echo "<td class='fejlec'><center><img src='".THEME."images/logo.png' align='center' /></center></td>\n";
echo "</tr>\n</table>\n";


to
CodeDownload  
//Fejléc rész
echo "<table cellpadding='0' cellspacing='0' style='width:990px;' align='center'>\n<tr>\n";
echo "<td class='fejlec'><center><a href='".BASEDIR."./'><img src='".THEME."images/logo.png' align='center' /></a></center></td>\n";
echo "</tr>\n</table>\n";

Ahhh I see so you reference the base directory instead of the url!! Thank you much sir!!
Thread Information
Author
Replies
3 posts
Views
667 times
Last Post
Last updated on 5 years ago
You can view all discussion threads in this forum.
You cannot set up a bounty in this discussion thread.
You can start a new discussion thread in this forum.
You cannot reply in this discussion thread.
You cannot start on a poll in this forum.
You cannot upload attachments in this forum.
You can download attachments in this forum.
You cannot up or down-vote on the post in this discussion thread.
Users who participated in discussion: KasteR, Megasporwic