How to add external LINK to phpMyFAQ Header
Moderator: Thorsten
How to add external LINK to phpMyFAQ Header
I'd like to add an <a href="http:// .....> external link to the header (to be included in the 'horizontal navigation' section) so that visitors can easily return to my home page at my web site by clicking on the link in the header instead of hitting the browser "back" button. I've tried copying the format used in Index.php using the "msg...." idea, but my lack of knowledge of php is showing as all I get when I try to run Index.php is parser errors. Currently my solution to the problem is to create a regular html web page with the link at the top and then use an iframe to call the Index.php page. This works but it's cumbersome and slows down the load time. Can you help me solve this little problem?
Hi,
just add the HTML into the file index.tpl in the directory template/.
bye
Thorsten
just add the HTML into the file index.tpl in the directory template/.
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
External Link in phpMyFAQ
Thank you for the quick reply! Your suggestion worked like a charm. I hadn't even thought of looking at the Index.tpl file, but I knew I was missing something obvious.
Tom Clauset
USA
Tom Clauset
USA
I can see my link in the header but it is prefixed
I also am trying to change the link from the header. I was able to change the name via the admin screen but when I edit what I "think" is the correct file I get the existing link along with the link I added.
So before I had "www.troop1610.com/faq" as the link in the header.
I changed this in the "www.troop1610.com/faq/template/index.tpl" file and added the link I wanted "WWW.troop1610.com.
and I now have "www.troop1610.com/faq/www.troop1610.com"
I don't know where the initial path is being generated but am guessing some value is storing the path as I cannot find the first part of the link in the file.
Where else can I look? Is this the same file where I would add an image so the page would have a uniform place to click to return home?
http://www.troop1610.com/faq
Thanks
David
Royal Oak, Mi USA
So before I had "www.troop1610.com/faq" as the link in the header.
I changed this in the "www.troop1610.com/faq/template/index.tpl" file and added the link I wanted "WWW.troop1610.com.
Code: Select all
<h1><a title="{header}" href="www.troop1610.com">{header}</a></h1>I don't know where the initial path is being generated but am guessing some value is storing the path as I cannot find the first part of the link in the file.
Where else can I look? Is this the same file where I would add an image so the page would have a uniform place to click to return home?
http://www.troop1610.com/faq
Thanks
David
Royal Oak, Mi USA
Try this code below:
Code: Select all
<h1><a title="{header}" href="http://www.troop1610.com">{header}</a></h1>