user.css not changing anything

Open to all! Ask other shopowners for help.
Post Reply
User avatar
Portman
Contributor
Posts: 158
Joined: Mon Mar 08, 2021 1:04 am
Phoenix Version: v1.0.8.20
Has thanked: 29 times
Been thanked: 4 times

user.css not changing anything

Post 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?


Join The Code Co-op to get access to your library in the Code Co-op Forum
heatherbell
Senior Contributor
Posts: 2540
Joined: Mon Oct 07, 2019 4:39 am
Phoenix Version:
Has thanked: 35 times
Been thanked: 243 times

Re: user.css not changing anything

Post 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.
14Steve14
Senior Contributor
Posts: 923
Joined: Fri Oct 25, 2019 7:01 pm
Phoenix Version: v1.0.9.1
Has thanked: 17 times
Been thanked: 103 times

Re: user.css not changing anything

Post 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.
User avatar
bonbec
Contributor
Posts: 190
Joined: Mon Oct 26, 2020 12:23 pm
Phoenix Version: V1.1.0.7
Has thanked: 54 times
Been thanked: 40 times

Re: user.css not changing anything

Post by bonbec »

CTRL+F5 didn't always work for me, but the tip given here work perfectly:
https://phoenixcart.org/phoenixcartwiki ... ss_Changes
Old MS2.2 PHP7.4 site being converted to CE Phoenix v1.1.0.6 PHP 8.3
User avatar
burt
Core Team
Posts: 4560
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 413 times

Re: user.css not changing anything

Post 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.
I am not here to build for you.
I am here to build with you. Let's help each other.
User avatar
Portman
Contributor
Posts: 158
Joined: Mon Mar 08, 2021 1:04 am
Phoenix Version: v1.0.8.20
Has thanked: 29 times
Been thanked: 4 times

Re: user.css not changing anything

Post by Portman »

Thankyou everyone for your support!!!


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply