| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
{include file=...} with extra class | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Hi, I am trying to move the 'Send to friend' button down a little, in customer/main/send_to_friend.tpl.
I know that line 55 creates the button: Code:
I was wondering if there was a way to 'insert' a class here, such as Code:
(Obviously that doesn't work or I wouldn't be asking!) I know I could make a 'button2.tpl' and copy button.tpl, then change the CSS for that, but I thought it might be better to just add in a class - if it's possible. Does anybody know how this is done? Many thanks in advance.
__________________
X-Cart Gold Version 4.3.2 |
|||||||
#2
|
|||||||||
|
|||||||||
![]() Why can't you simply wrap the include in a div and add a top-margin?
Code:
__________________
Thanks, Rob ![]() |
|||||||||
|
#3
|
|||||||||
|
|||||||||
![]() All you have to do is look in "customer/buttons/button.tpl" to know how to do it. Add "additional_button_class" like this
{include file="customer/buttons/button.tpl" type="input" button_title=$lng.lbl_send_to_friend additional_button_class="send_to_friend"}
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
|
|
|||
X-Cart forums © 2001-2020
|