Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Struggling with template edits

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-15-2012, 02:38 PM
 
JonnyC JonnyC is offline
 

Member
  
Join Date: Jul 2004
Location: Manchester UK
Posts: 12
 

Default Struggling with template edits

Hi everyone

I am setting up a new site for a friend but really struggling with the new templates in 4.4.5

I have managed to edit the template so the site isnt full width, but cant get it to center properly:

http://www.mediaservit.co.uk/shop/

I am also trying to add a background similar to the homepage, but that doesnt seem to work either http://www.mediaservit.co.uk

Would sincerly appreciate it if anyone caan give me an help as to what I have done wrong, I have tried searching the forums, and have tried other suggestions for centering the site, but it doesnt seem to work correctly on my site.

Many thanks

Jon
__________________
X-Cart version 4.4.5
Reply With Quote
  #2  
Old 04-15-2012, 06:10 PM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: Struggling with template edits

Hi Jon, try this:
#page-container {
background: none repeat scroll 0 0 #FFFFFF;
float: none;
margin: 0 auto;
min-height: 100%;
padding: 2px;
position: relative;
width: 1200px;
}


Add your background image to the body:
html, body {
background: url("../images/bg.jpg") repeat-x scroll center top transparent;
color: #000000;
font-family: Arial,Helvetica,sans-serif;
font-size: 12px;
}
Make these edits to /css/altskin.css of your current template.
Place bg.jpg in the /images directory of your current template
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote

The following user thanks totaltec for this useful post:
JonnyC (04-16-2012)
  #3  
Old 04-16-2012, 03:57 AM
 
JonnyC JonnyC is offline
 

Member
  
Join Date: Jul 2004
Location: Manchester UK
Posts: 12
 

Default Re: Struggling with template edits

Hi Mike

Thanks so much for your reply and assistance.

I have applied your edits and they have worked, but I have a white bar running down the right side of the site, which also seems to be knocking the site off centre.

Thanks again

Jon
__________________
X-Cart version 4.4.5
Reply With Quote
  #4  
Old 04-16-2012, 04:50 AM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: Struggling with template edits

Jon,
It looks like your content container is set to 80%
#content-container {
clear: both;
float: left;
margin-top: 140px;
overflow: hidden;
padding-bottom: 39px;
position: relative;
width: 80%;
}

That is what is causing the white bar I believe.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote

The following user thanks totaltec for this useful post:
JonnyC (04-16-2012)
  #5  
Old 04-16-2012, 05:11 AM
 
JonnyC JonnyC is offline
 

Member
  
Join Date: Jul 2004
Location: Manchester UK
Posts: 12
 

Default Re: Struggling with template edits

Works perfectly

Thanks so much for your help

Jon
__________________
X-Cart version 4.4.5
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 01:21 AM.

   

 
X-Cart forums © 2001-2020