Page 1 of 1

user.css not changing anything

Posted: Sat Sep 23, 2023 4:41 am
by Portman
Hi,

I am going through the CSS tutorial at https://phoenixcart.org/phoenixcartwiki ... and_Colour and have applied the changes as shown in the tutorial but it is not changing anything ... am i missing something;
I am using 1.0.8.20
and saving changes in templates/default/static/user.css

this is what I have done just to see it it will change anything;

Code: Select all

.breadcrumb {
   background-color: red !important;
}


.is-product .cm-pi-price .display-4 {
	font-size: 1rem !important;
}
but nothing is changing when I refersh my website.

I am using an add-on but that does not seem to control css at all so i dont think it has anything to do with that.

any thoughts? is there anything I need to check?

Re: user.css not changing anything

Posted: Sat Sep 23, 2023 6:02 am
by heatherbell
Portman wrote: Sat Sep 23, 2023 4:41 am I am going through the CSS tutorial at https://phoenixcart.org/phoenixcartwiki ... and_Colour and have applied the changes as shown in the tutorial but it is not changing anything ... am i missing something;
I am using 1.0.8.20
and saving changes in templates/default/static/user.css
That User Guide page states:
From v1.0.7.14, if you are making changes to this file, make a copy and upload to templates/override/static/ or whichever template you have chosen in admin.

Re: user.css not changing anything

Posted: Sat Sep 23, 2023 1:38 pm
by 14Steve14
Portman wrote: Sat Sep 23, 2023 4:41 am but nothing is changing when I refersh my website.

any thoughts? is there anything I need to check?
Firstly what template do you have setup in admin - configuration - My Store - Template Selection.

If default change it to override, then add all your changes into the templates/override/static/user.css.

When you add new lines in there, just return to your website and refresh the browser or click ctrl + F5. All your changes should then show.

Re: user.css not changing anything

Posted: Sat Sep 23, 2023 3:27 pm
by bonbec
CTRL+F5 didn't always work for me, but the tip given here work perfectly:
https://phoenixcart.org/phoenixcartwiki ... ss_Changes

Re: user.css not changing anything

Posted: Sat Sep 23, 2023 5:05 pm
by burt
Here's a post that explains a little bit about templating:

viewtopic.php?f=10&t=2019

If you (or anyone) has specific questions about the architecture of templating, please feel free to ask in that linked post and I'll try my best to answer without technical jargon.

Re: user.css not changing anything

Posted: Mon Sep 25, 2023 6:26 am
by Portman
Thankyou everyone for your support!!!