user.css not changing anything

Ask the community for help with CE Phoenix Cart.
Post Reply
User avatar
Portman
VIP Member
VIP Member
Posts: 130
Joined: Mon Mar 08, 2021 1:04 am
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?
heatherbell
VIP Member
VIP Member
Posts: 2201
Joined: Mon Oct 07, 2019 4:39 am
Has thanked: 30 times
Been thanked: 205 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
VIP Member
VIP Member
Posts: 742
Joined: Fri Oct 25, 2019 7:01 pm
Has thanked: 9 times
Been thanked: 53 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.
Power your model railways using electrical products from http://www.railwayscenics.com
User avatar
bonbec
VIP Member
VIP Member
Posts: 72
Joined: Mon Oct 26, 2020 12:23 pm
Has thanked: 10 times
Been thanked: 7 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.0.9.7 PHP 8.3
burt
Lead Developer
Lead Developer
Posts: 2779
Joined: Tue Oct 29, 2019 9:37 am
Has thanked: 52 times
Been thanked: 158 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.
Current Beer Fund: £14.00

#wearephoenix #wearecommunity
User avatar
Portman
VIP Member
VIP Member
Posts: 130
Joined: Mon Mar 08, 2021 1:04 am
Has thanked: 29 times
Been thanked: 4 times

Re: user.css not changing anything

Post by Portman »

Thankyou everyone for your support!!!
Post Reply