If this is your first visit, check our documentation. To post, register or login.
Forums / Customizing the Look of Your Shop / Templates, Stylesheets, Page Layout / Changing code in stylesheet.css has no effect

Changing code in stylesheet.css has no effect

Started by coreyalderin on 3 Jun 2012, 8:38 PM · Views: 1,942

Results 1 to 13 of 13
3 Jun 2012, 8:38 PM
#1
coreyalderin avatar

coreyalderin

Zen Follower

Join Date:
May 2012
Posts:
137
Plugin Contributions:
0

Post #1 by coreyalderin

I am editting the code in stylesheet.css but the changes do not take affect on my page.

Let me know if you need additional information in order to help with this.

Any help would be greatly appreciated

Thanks
Corey

4 Jun 2012, 2:22 AM
#2
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,189
Plugin Contributions:
0

Post #2 by haredo

I don't understand your question ...

Please provide a link to your site please with what you would like to change ..

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.

4 Jun 2012, 11:35 AM
#3
win8win avatar

win8win

Zen Follower

Join Date:
Apr 2012
Location:
beijing
Posts:
258
Plugin Contributions:
1

Post #3 by win8win

1:are there other *.css files,such as stylesheet_tm.css,stylesheet_main.css and so on,which have higher priority effect.

focus on the open source for online shoping website.
my site: best shop 24h.com

4 Jun 2012, 12:23 PM
#4
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Post #4 by stevesh

Zencart loads all stylesheets whose names begin with 'style', have the .css extension and are in the current template's css folder. Stylesheets are read top to bottom, and (I believe) are loaded alphabetically by file name. If you have a rule in stylesheet_main.css and the same rule in stylesheet_tm.css, the latter will prevail, as it is read after the first and will 'overwrite' the rule from stylesheet_main.css.

p.s. If you can 'optimize' a Template Monster template, you're a better man than I.

4 Jun 2012, 11:49 PM
#5
coreyalderin avatar

coreyalderin

Zen Follower

Join Date:
May 2012
Posts:
137
Plugin Contributions:
0

Post #5 by coreyalderin

I have no additional stylesheet_XXXXX.css files.

I have not made any modifications to any files or folders, except for making a new template folder called cutom.

5 Jun 2012, 12:04 AM
#6
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,151
Plugin Contributions:
56

Post #6 by lat9

Like haredo said, a link to your site would help people to help you ...

5 Jun 2012, 12:25 AM
#7
coreyalderin avatar

coreyalderin

Zen Follower

Join Date:
May 2012
Posts:
137
Plugin Contributions:
0

Post #7 by coreyalderin

Sorry, forgot that. http://toolsforchrist.com/shop/

Just curious, how does the link help? (I am very new to all this)

5 Jun 2012, 1:15 AM
#8
gilby avatar

gilby

Totally Zenned

Join Date:
Aug 2005
Location:
Vic, Oz
Posts:
1,816
Plugin Contributions:
0

Post #8 by gilby

coreyalderin:

Sorry, forgot that. http://toolsforchrist.com/shop/

Just curious, how does the link help? (I am very new to all this)
It will help in that we can dynamically "alter" the css and directly see the result in our browser.

Now we need to know what you are altering and what you are expecting to happen.

5 Jun 2012, 1:22 AM
#9
coreyalderin avatar

coreyalderin

Zen Follower

Join Date:
May 2012
Posts:
137
Plugin Contributions:
0

Post #9 by coreyalderin

I have tried changing a lot of things, but nothing works. It could be that I just dont understand how the stylesheet works because I deleted everything from it expecting it to really mess thing up on my site (just as a test). But nothing happened.

5 Jun 2012, 2:10 AM
#10
coreyalderin avatar

coreyalderin

Zen Follower

Join Date:
May 2012
Posts:
137
Plugin Contributions:
0

Post #10 by coreyalderin

I am just now noticing that some of the things I tried to change last night are now working. But now I am trying to change the code again, and nothing happens.

What makes the changes take effect?

5 Jun 2012, 3:47 AM
#11
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #11 by drbyte

As far as Zen Cart is involved, changes take effect immediately when the file is uploaded.
So, when you use your FTP program to upload the edited file, it is immediately available for subsequent visits.

If you are not seeing the changes, then the file's contents have probably been cached by your browser. Clear your browser's cache to cause a reload. You might be able to trigger a reload by pressing F5 when looking at the page, or right-clicking and choosing "Refresh" or "Reload" depending on your browser. But emptying the cache is most effective.

Using your browser's "Inspect" functionality can help further as well. Firebug takes it up another level too. You can find discussions of these web designer tools all over the internet.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

6 Jun 2012, 12:28 AM
#12
coreyalderin avatar

coreyalderin

Zen Follower

Join Date:
May 2012
Posts:
137
Plugin Contributions:
0

Post #12 by coreyalderin

Thank you. I feel very dumb right now. I thought hitting the home button was the same thing as reloading the page. It is all wrking properly.

6 Jun 2012, 4:05 AM
#13
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #13 by drbyte

No need to feel dumb! It's one of those things that once you learn it, it'll save your bacon lots of times later!

Wishing you well with your store ;)

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.