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)

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?


All times are GMT -8. The time now is 07:04 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.