![]() |
How to add links in footer?
I want to add a link in the footer and have added it in the file customer->bottom.tpl; however, it is not clickable. Can anyone tell me how to make it clickable?
Below is a sample link as how I added it in the bottom.tpl: ===================================== {* $Id: bottom.tpl,v 1.2 2008/08/21 09:52:43 max Exp $ vim: set ts=2 sw=2 sts=2 et: *} <div class="box"> <div class="subbox"> <div class="left">{include file="main/prnotice.tpl"}</div> <div class="right">{include file="copyright.tpl"} <a href="http://www.samplelink.com">samplelink</a></div> </div> </div> ====================================== |
Re: How to add links in footer?
Have you tried adding it in the copyright.tpl?
|
Re: How to add links in footer?
Yes, but still no luck!
I tried to add the link to prnotice.tpl and copyright.tpl, but it is still not clickable! |
Re: How to add links in footer?
I further discovered that the links in prnotice.tpl and copyright.tpl are clickable in the admin control panel but not in the shop front. Any suggestion to solve the problem?
|
Re: How to add links in footer?
could possibly be a layout issue with a container on top the the botom.tpl since it is absolutely positioned.
try playing with the z-index of whatever CSS you have controlling the bottom portion of your site. |
Re: How to add links in footer?
also post a URl
|
Re: How to add links in footer?
Website URL is at www.mydlstore.com
|
Re: How to add links in footer?
did you try to change the z-index of #footer to 999?
#footer{ z-index:999; } |
Re: How to add links in footer?
in the css file find #content-container { and remove z-index
|
Re: How to add links in footer?
It works perfect. Thanks a lot.
Quote:
|
Re: How to add links in footer?
your welcome.
|
Re: How to add links in footer?
Ok, I tried to do the same thing, when adding to bottom.tpl it only affects the admin. I added a link to copyright.tpl and it removes the text that the { smarty } tags generate for the copyright text and only displays the link. However like mentioned above its not clickable (I'm assuming the z-index fix will work here), but how do I get my copyright notice back as well?
I'm not replacing, deleting or commenting out, just insert a link above it and having <br/> to separate the lines. Any ideas? |
Re: How to add links in footer?
post the code please. and url.
|
Re: How to add links in footer?
I decided to not edit bottom.tpl as it only changes the Admin footer it seems.
This is my copyright.tpl. Code:
{* URL in a PM |
Re: How to add links in footer?
are you editing skin1/bottom.tpl or skin1/customer/bottom.tpl
|
Re: How to add links in footer?
I think you should change the height of the bottom box, you also might need to change the bottom margin of center-main I think.
|
Re: How to add links in footer?
No, I'm only editing ../copyright.tpl as that is the only .tpl that affects the public footer it seems.
I just increased #footer height: 39px; to 50px; in main.css (more than enough to fit 2 lines of text) and it didn't fix my problem, it just made the footer larger without including the copyright text. I'm thinking adding the link where I did is somehow overriding the copyright text, but why? |
Re: How to add links in footer?
***********MAKE SURE YOU BACK UPI YOUR FILES FIRST!!!!!!!!!!!!
you will need to change the following CSS. change height and line-height to whatever larger number you would like. maybe 80. #footer .subbox { position: relative; border-top: #ffd30d 1px solid; background: #f4f5f7 none; color: #667d92; height: 40px; vertical-align: middle; padding: 0px; } #footer .subbox .left { background: transparent none; position: absolute; left: 12px; top: 0px; line-height: 40px; vertical-align: middle; } #footer .subbox .right { background: transparent none; position: absolute; right: 12px; top: 0px; text-align: right; line-height: 40px; vertical-align: middle; } then here #content-container { clear: both; float: left; overflow: hidden; position: relative; width: 100%; padding-bottom: 39px; margin-top: 140px; } change padding to match topm number. |
Re: How to add links in footer?
Thanks for trying, but it did absolutely nothing :).
|
Re: How to add links in footer?
did you clear browser history?
|
Re: How to add links in footer?
did you change it back?
|
Re: How to add links in footer?
No it's still there with edits.
I did a forced refresh. |
Re: How to add links in footer?
what CSS file are you editing?
I look at your CSS and it still says the 4o pixels |
Re: How to add links in footer?
Quote:
main.css Using Firebug, it shows that I have edited it. Code:
#content-container { Maybe you need to clear your cache ;) |
Re: How to add links in footer?
Ok, seems like the padding was pushing it below the page for some reason, I've gotten it to show now, however, there's a gap between the link and the copyright text, even though I only put in one non-breaking space. I'll have to figure out why the gap is so large and then look into getting your z-index fix to work.
Thanks for the help Ashley, as always, much appreciated :) |
All times are GMT -8. The time now is 03:52 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.