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

Head Logo

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #21  
Old 01-20-2009, 12:03 PM
 
GreatLakesVacuum GreatLakesVacuum is offline
 

eXpert
  
Join Date: Jan 2009
Posts: 286
 

Default Re: Head Logo

Yup, Victor is right, I just did this in mine, I ripped the width and height tags out of main.css completely, they are not needed. It is not very smart of x-cart to include stuff like this by default. They should just have a "company logo" part of the admin panel where you set the logo for each size necessary and it makes all the adjustments.
__________________
X-Cart 4.5.4 Gold (Live Business Site)
X-Cart 5.1.9 Business (In Development Now)
Reply With Quote
  #22  
Old 01-22-2009, 06:23 PM
 
HotrodOffroad HotrodOffroad is offline
 

Member
  
Join Date: Dec 2008
Posts: 16
 

Default Re: Head Logo

OK, I hate to be ignorant, but I'm new to smarty, etc.
How do I change the width from 100% to 900 or another fixed width?

This doesn't work:

{*
$Id: rectangle_top.tpl,v 1.26 2008/08/21 09:52:40 max Exp $
vim: set ts=2 sw=2 sts=2 et:
*}
<table class="Container" cellpadding="0" cellspacing="0" width="{$width|default:900px}">
<tr><td class="Container">

I'm sure I'm missing something....
__________________
4.2 My site
Fancy Categories

4.2 Customer site
Fancy Categories
Reply With Quote
  #23  
Old 01-22-2009, 06:32 PM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

X-Man
  
Join Date: Jan 2007
Location: Pensacola, FL
Posts: 2,536
 

Default Re: Head Logo

its in the CSS file.
__________________
xcart 5.1.2
Reply With Quote
  #24  
Old 01-23-2009, 12:03 AM
  Victor D's Avatar 
Victor D Victor D is offline
 

X-Adept
  
Join Date: Aug 2008
Posts: 643
 

Default Re: Head Logo

If you are dealing with version prior to 4.2 just edit skin1/customer/home.tpl
find there the line
Code:
{include file="rectangle_ top.tpl"}

and change to
Code:
{include file="rectangle_ top.tpl" width="900"}
__________________
Regards,
Victor Dubiniuk

X-Cart Skins Store
- twenty two different skins for 4.1.x and 4.2.x;
- 4.3.x compatible versions are available;
- refresh you store now!

Smart menu X-Cart add-on for 4.1.8 - 4.3.x
Featured Products Slide Show X-Cart add-on for 4.1.8 - 4.3.x
Reply With Quote
  #25  
Old 01-27-2009, 03:57 PM
 
HotrodOffroad HotrodOffroad is offline
 

Member
  
Join Date: Dec 2008
Posts: 16
 

Default Re: Head Logo

It's not in /rectangle_top.tpl ?
v 4.2
__________________
4.2 My site
Fancy Categories

4.2 Customer site
Fancy Categories
Reply With Quote
  #26  
Old 01-27-2009, 06:20 PM
 
HotrodOffroad HotrodOffroad is offline
 

Member
  
Join Date: Dec 2008
Posts: 16
 

Default Re: Head Logo

OK, I checked main.css for any width that looked like it should be global and I couldn't find anything.
I just want to make the site a specific width in 4.2 but I'm having no luck. This should be easy....
I can't find any other forum postings that explain this for 4.2.
__________________
4.2 My site
Fancy Categories

4.2 Customer site
Fancy Categories
Reply With Quote
  #27  
Old 01-27-2009, 06:35 PM
 
HotrodOffroad HotrodOffroad is offline
 

Member
  
Join Date: Dec 2008
Posts: 16
 

Default Re: Head Logo

So in relation to the head logo width and the whole website width in 4.2 I am now being a dork and adding to my last 2 posts.
In the main.css file at the top I did see a height tag, so I added a fixed width tag and now have a fixed width site, but it is somehow set to the left of the screen.
Here is how I added the html (the align: center tag does nothing):
/*
general tags styles
*/
html,body {
align: center; height: 100%; width: 900px;
background: #180000 url(images/golfsunsetshot.jpg) no-repeat;
margin: 0px;
padding: 0px;
font-family: verdana, arial, helvetica, sans-serif;
font-size: 11px;
min-width: 780px;
border: 0px none;
}


Any ideas?
__________________
4.2 My site
Fancy Categories

4.2 Customer site
Fancy Categories
Reply With Quote
  #28  
Old 01-27-2009, 07:51 PM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

X-Man
  
Join Date: Jan 2007
Location: Pensacola, FL
Posts: 2,536
 

Default Re: Head Logo

the width should be controlled by page-container

#page-container {
min-height: 100%;
position: relative;
width:975px;
margin:0 auto 0 auto;
}

the margin is what centers the page.
__________________
xcart 5.1.2
Reply With Quote
  #29  
Old 01-27-2009, 07:56 PM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

X-Man
  
Join Date: Jan 2007
Location: Pensacola, FL
Posts: 2,536
 

Default Re: Head Logo

read this,

bookmark it,

love it!!!!!!!!!!!!!!!!!!
__________________
xcart 5.1.2
Reply With Quote
  #30  
Old 01-27-2009, 08:01 PM
 
HotrodOffroad HotrodOffroad is offline
 

Member
  
Join Date: Dec 2008
Posts: 16
 

Default Re: Head Logo

Thanks Ashley,
But I added the

width:900px;
margin:0 auto 0 auto;

and it didn't center.
__________________
4.2 My site
Fancy Categories

4.2 Customer site
Fancy Categories
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 03:49 AM.

   

 
X-Cart forums © 2001-2020