Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / page won't change - my css changes aren't working

page won't change - my css changes aren't working

Locked

Views: 3,721

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
12 Apr 2007, 10:23 AM
#1
mex avatar

mex

Zen Follower

Join Date:
Feb 2007
Posts:
176
Plugin Contributions:
0

page won't change - my css changes aren't working

Hi,

I have 2 override folders custom and custom2 for 2 different ZC. Everytime i have a custon i also have custom2 , both in same dir and not in each others.

I have the css file in the overrides to change for each custom,custom2 folder. I want to change the custom2 whole page .
I can change somethimgs in css override but not this which seems to be unchangeable, no matter what i put.
I want the page to be 800px and not 750 for starters but putting 800px has no effect.

I can get changes if i change the #mainWrapper name, meaning ZC isn't picking up changes i set to my specific template.

body {

margin-top: 20px;
font-family: verdana, arial, helvetica, sans-serif;
font-size: 62.5%;
color: #000000;
background-color: black;
}

#mainWrapper {
text-align: left;
width:750px;
vertical-align: top;
background-color: black;
}

12 Apr 2007, 11:41 AM
#2
mex avatar

mex

Zen Follower

Join Date:
Feb 2007
Posts:
176
Plugin Contributions:
0

Re: page won't change - my css changes aren't working

I have a new install of ZC , and i have the same problem. So my above q) isn't valid.

q)How can i set the page to cover the whole 800px and have no margin on the left/right side from a new install of ZC?

q) where do i add a margin to the top of page so it starts from the top?

12 Apr 2007, 12:45 PM
#3
mex avatar

mex

Zen Follower

Join Date:
Feb 2007
Posts:
176
Plugin Contributions:
0

Re: page won't change - my css changes aren't working

In the header file i tried to change these but nothing happens?
I really have no idea as to wht this fails. On FF the 1st div is #mainWrapper

I have got rid of all set margin to 0em with all these.

<div id="headerWrapper"> <!--bof-navigation display--> <div id="navMainWrapper"> <div id="navMain"> <ul class="back">

Spent too long on such a small matter and it has driven me crazy.

12 Apr 2007, 2:34 PM
#4
mex avatar

mex

Zen Follower

Join Date:
Feb 2007
Posts:
176
Plugin Contributions:
0

Re: page won't change - my css changes aren't working

I am getting really confused after i re checked my problem again. I couldn't delete previous posts.

I have 2 templates custom and custom2.
I have trouble in picking up changes to the custom2 dir stylesheet.css.
It is in the correct place but seesm to fall back on the same sheet in custom dir.

q) Why can't i pick up changes to my stylesheet in my custom2 dir. The custom2 is the template loaded so that is not the problem. The stylesheet is under a custom2 dir in the same place as custom but not in it.

12 Apr 2007, 2:46 PM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: page won't change - my css changes aren't working

Please show your directory structure

12 Apr 2007, 11:39 PM
#6
mex avatar

mex

Zen Follower

Join Date:
Feb 2007
Posts:
176
Plugin Contributions:
0

Re: page won't change - my css changes aren't working

Well i have this .

/includes/templates/custom/css/stylesheet.css //it picks up this wrongly
/includes/templates/custom/templates ...etc

/includes/templates/custom2/css/stylesheet.css //I want this
/includes/templates/custom2/templates etc.....

The custom2 template is loaded under admin.

If I delete the stylesheet from custom2 it then picks up custom styesheet and not the orginal default?

So the override isn't working or it is confused with previous custom template
. It will pick up stuff from custom2 if the tag isn't in custom., oddly.
I did copy and paste all the custom dir and renamed it custom2.

12 Apr 2007, 11:58 PM
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: page won't change - my css changes aren't working

  1. In another thread you have discussed "extreme" changes to core code in order to hack in some desired functionality. Is it possible that you've broken something?

  2. What happens if you rename your /includes/templates/custom folder to custom_HIDE and then try loading your site?

  3. Without seeing your site or your files it's very hard to tell you what's busted or why.
    What's the URL where this can be seen?
    Or at least, paste the View Source code from your home page.

  4. What's in your /includes/templates/custom/template_info.php file and in your /includes/templates/custom2/template_info.php file?

Out of the box it works fine. Have you followed the template creation guides?

Downloading and installing most templates from the downloads area by basically uploading the new template folder under /includes/templates is all that is usually required (apart from language-file changes etc, but you're not mentioning any language problems).

https://www.zen-cart.com/tutorials/index.php?category=4
http://www.zen-cart.com/wiki/index.php/Customisation_-_Templates
etc

12 Apr 2007, 11:58 PM
#8
mex avatar

mex

Zen Follower

Join Date:
Feb 2007
Posts:
176
Plugin Contributions:
0

Re: page won't change - my css changes aren't working

Well i have this .

/includes/templates/custom/css/stylesheet.css //it picks up this wrongly
/includes/templates/custom/templates ...etc

/includes/templates/custom2/css/stylesheet.css //I want this
/includes/templates/custom2/templates etc.....

The custom2 template is loaded under admin.

If I delete the stylesheet from custom2 it then picks up custom styesheet and not the orginal default?

So the override isn't working or it is confused with previous custom template
. It will pick up stuff from custom2 if the tag isn't in custom., oddly.
I did copy and paste all the custom dir and renamed it custom2.

13 Apr 2007, 12:05 AM
#9
mex avatar

mex

Zen Follower

Join Date:
Feb 2007
Posts:
176
Plugin Contributions:
0

Re: page won't change - my css changes aren't working

Well i have this .

/includes/templates/custom/css/stylesheet.css //it picks up this wrongly
/includes/templates/custom/templates ...etc

/includes/templates/custom2/css/stylesheet.css //I want this
/includes/templates/custom2/templates etc.....

The custom2 template is loaded under admin.

If I delete the stylesheet from custom2 it then picks up custom styesheet and not the orginal default?

So the override isn't working or it is confused with previous custom template
. It will pick up stuff from custom2 if the tag isn't in custom., oddly.
I did copy and paste all the custom dir and renamed it custom2.

13 Apr 2007, 6:23 AM
#10
mex avatar

mex

Zen Follower

Join Date:
Feb 2007
Posts:
176
Plugin Contributions:
0

Re: page won't change - my css changes aren't working

The problem is that it is fri 13th, so things don't work as they should!

I did alter some default tags in css which are in custom folder. I am redoing it slowly (leaving default tags and adding my own if needed).
Also not altering default code and just adding to it or comment it out where not needed ( which isn't much at all).
So far so good , and what i previously did probably caused problems.