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)
-   -   Admin CSS (https://forum.x-cart.com/showthread.php?t=26707)

brandfly 11-17-2006 03:32 PM

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

balinor 11-18-2006 05:43 PM

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" />

brandfly 11-18-2006 06:25 PM

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?

balinor 11-19-2006 03:12 AM

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 :)

zshiek 11-29-2006 07:45 AM

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

PhilJ 11-29-2006 08:25 AM

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}


brandfly 11-29-2006 10:44 AM

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.

matthewstroh 10-25-2007 01:18 PM

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!!!)


All times are GMT -8. The time now is 05:31 PM.

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