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

Admin CSS

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-17-2006, 03:32 PM
 
brandfly brandfly is offline
 

Member
  
Join Date: Nov 2006
Location: San Diego
Posts: 12
 

Default Admin CSS

Hello, I tried to figure out what I could on my own, but I'm stuck on something that is probably a simple fix. It was my understanding that the skin1.css only affected the customer side and skin1_admin.css affected the admin, but instead skin1.css is actually being applied to my admin as well. I know how to keep the page formatting sepearte using {if} stuff so I'm hoping someone can tell me how to make is so that the admin uses a different css file than the customer side. I really just want to keep the admin with all the default values when I first installed xcart. Any genious' want to help me out? Thanks.

Dustin
X-Cart Gold v4.1.x
__________________
Thanks.

Dustin // Captain

[ BrandFly ] Design & Other Creative Stuff
BrandFly.com

X-Cart Gold v4.1.1
Reply With Quote
  #2  
Old 11-18-2006, 05:43 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Admin CSS

Hmmm...by default the admin area should call skin1_admin.css. You can check this by having a look at single/home.tpl, as that is the admin area main template. You should see this line of code at the top:

<link rel="stylesheet" href="{$SkinDir}/skin1_admin.css" />
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 11-18-2006, 06:25 PM
 
brandfly brandfly is offline
 

Member
  
Join Date: Nov 2006
Location: San Diego
Posts: 12
 

Default Re: Admin CSS

Thanks for the help, this will be good to know in the future. I checked the file and it IS calling the skin1_admin.css. Is there a possibility that i may have messed up this code in another file?
__________________
Thanks.

Dustin // Captain

[ BrandFly ] Design & Other Creative Stuff
BrandFly.com

X-Cart Gold v4.1.1
Reply With Quote
  #4  
Old 11-19-2006, 03:12 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Admin CSS

Are you using Pro or Gold? May want to make sure you didn't overwrite skin1_admin.css by mistake.

Also, please be sure to add your full version to your signature. Thanks
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 11-29-2006, 07:45 AM
  zshiek's Avatar 
zshiek zshiek is offline
 

Member
  
Join Date: Sep 2006
Location: Virginia
Posts: 16
 

Default Re: Admin CSS

If you apply embedded styles into tables and form fields within this directory
skin1/"anyfile.tpl" you might possible change will affect the admin section.

For example if you apply a background color directly to the files in the above directory you will see the changes on the customer end but also in your admin section.

Generally a good idea is to add CSS styles to the sections you want in that directory. Since the css is different it wont affect any other part of the site.

usually all changes for customers are done in this directory
skin1/customers

be careful when working in the following directory
skin1/main or skin1/"anyfile.tpl"

good luck
__________________
X-Cart Gold 4.1.3 | 4.1.5 | 4.16

PHP/4.4.4 MySQL version 4.1.21
Reply With Quote
  #6  
Old 11-29-2006, 08:25 AM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default Re: Admin CSS

Code:
{if $usertype eq "A" or ($usertype eq "P" and $active_modules.Simple_Mode ne "")} Show Admin Code {else} Show Customer Code {/if}
__________________
xcartmods.co.uk
Reply With Quote
  #7  
Old 11-29-2006, 10:44 AM
 
brandfly brandfly is offline
 

Member
  
Join Date: Nov 2006
Location: San Diego
Posts: 12
 

Default Re: Admin CSS

Hey everybody, thanks for your help. I actually figured out what the problem is. rectangle_bottom.tpl is used in both the admin and the customer side. I had attached a style sheet to this file for layout purposes so it was applying this style to the entire admin. By deleting it, it fixed my problem.
__________________
Thanks.

Dustin // Captain

[ BrandFly ] Design & Other Creative Stuff
BrandFly.com

X-Cart Gold v4.1.1
Reply With Quote
  #8  
Old 10-25-2007, 01:18 PM
  matthewstroh's Avatar 
matthewstroh matthewstroh is offline
 

Member
  
Join Date: Oct 2007
Location: Portland, OR.
Posts: 16
 

Default Re: Admin CSS

PhilJ, your comment #6 helped me a lot. I've just learnt that if something is shared it's best to just start with your {if} beofre I go in and do anything funky to the customer side.

Thanks a bunch (even though it's almost 1 year after you've posted it!!!)
__________________
Matthew Stroh
Version 4.1.9
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 08:04 PM.

   

 
X-Cart forums © 2001-2020