X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   How to add links in footer? (https://forum.x-cart.com/showthread.php?t=49326)

mydls 08-25-2009 07:19 AM

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>
======================================

Shamun 08-25-2009 03:54 PM

Re: How to add links in footer?
 
Have you tried adding it in the copyright.tpl?

mydls 08-25-2009 06:00 PM

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!

mydls 08-25-2009 06:16 PM

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?

ARW VISIONS 08-25-2009 11:43 PM

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.

ARW VISIONS 08-25-2009 11:43 PM

Re: How to add links in footer?
 
also post a URl

mydls 08-26-2009 04:59 AM

Re: How to add links in footer?
 
Website URL is at www.mydlstore.com

ARW VISIONS 08-26-2009 05:32 AM

Re: How to add links in footer?
 
did you try to change the z-index of #footer to 999?

#footer{
z-index:999;
}

cflsystems 08-26-2009 08:46 AM

Re: How to add links in footer?
 
in the css file find #content-container { and remove z-index

mydls 08-26-2009 06:19 PM

Re: How to add links in footer?
 
It works perfect. Thanks a lot.

Quote:

Originally Posted by Ashley
did you try to change the z-index of #footer to 999?

#footer{
z-index:999;
}


ARW VISIONS 08-26-2009 06:39 PM

Re: How to add links in footer?
 
your welcome.

dwpers 08-28-2009 07:17 AM

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?

ARW VISIONS 08-28-2009 07:23 AM

Re: How to add links in footer?
 
post the code please. and url.

dwpers 08-28-2009 07:26 AM

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:

{*
$Id: copyright.tpl,v 1.14 2008/08/21 09:52:40 max Exp $
vim: set ts=2 sw=2 sts=2 et:
*}
<a href="">blah test link</a><br/>
{$lng.lbl_copyright} ╘ {$config.Company.start_year}{if $config.Company.start_year lt $config.Company.end_year}-{$smarty.now|date_format:"%Y"}{/if} {$config.Company.company_name}


URL in a PM

ARW VISIONS 08-28-2009 07:41 AM

Re: How to add links in footer?
 
are you editing skin1/bottom.tpl or skin1/customer/bottom.tpl

ARW VISIONS 08-28-2009 07:43 AM

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.

dwpers 08-28-2009 07:47 AM

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?

ARW VISIONS 08-28-2009 07:55 AM

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.

dwpers 08-28-2009 08:00 AM

Re: How to add links in footer?
 
Thanks for trying, but it did absolutely nothing :).

ARW VISIONS 08-28-2009 08:20 AM

Re: How to add links in footer?
 
did you clear browser history?

ARW VISIONS 08-28-2009 08:22 AM

Re: How to add links in footer?
 
did you change it back?

dwpers 08-28-2009 08:23 AM

Re: How to add links in footer?
 
No it's still there with edits.

I did a forced refresh.

ARW VISIONS 08-28-2009 08:51 AM

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

dwpers 08-28-2009 08:52 AM

Re: How to add links in footer?
 
Quote:

Originally Posted by Ashley
what CSS file are you editing?

I look at your CSS and it still says the 4o pixels



main.css

Using Firebug, it shows that I have edited it.

Code:

#content-container {
clear:both;
float:left;
margin-top:140px;
overflow:hidden;
padding-bottom:140px;
position:relative;
width:100%;
z-index:1;


}


Maybe you need to clear your cache ;)

dwpers 08-28-2009 09:08 AM

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.