Which way is correct for Phoenix

Overrides allow you to change the foundation of your site.
Post Reply
User avatar
Mort_Lemur
Builder
Posts: 63
Joined: Tue Jun 02, 2026 6:12 pm
Phoenix Version: v1.1.0.6
Has thanked: 42 times
Been thanked: 17 times

Which way is correct for Phoenix

Post by Mort_Lemur »

Just after a steer on which way is correct on Phoenix - I'm sure both ways work, but one is cleaner than the other.

What I'm doing is setting up the payment card option icons in the footer bar. I am using the usual Visa, Mastercard, PayPal, iPay and Google Pay and as I want them in color I am using css to generate the icons rather than using fontawesome ones.

So I have copied over the language file into the override folder and modified it to suit.

Now my question is: Should the css (approx 35 lines of it) be added to user.css or is it ok to leave it in the language file cm_footer_extra_icons.php?

Personally I would prefer the latter as it keeps all the code in one file and prevents my user.css becoming over-cluttered.


Join The Code Co-op to get access to your library in the Code Co-op Forum
User avatar
burt
Core Team
Posts: 4550
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 412 times

Re: Which way is correct for Phoenix

Post by burt »

Whichever you prefer.

For lng file:
Your language file would not be abused by other addons, whereas the user.css might be.

For user.css:
All Css in one place
I am not here to build for you.
I am here to build with you. Let's help each other.
User avatar
Mort_Lemur
Builder
Posts: 63
Joined: Tue Jun 02, 2026 6:12 pm
Phoenix Version: v1.1.0.6
Has thanked: 42 times
Been thanked: 17 times

Re: Which way is correct for Phoenix

Post by Mort_Lemur »

Well it seems to work in the language file, so that's where it will live :)


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