• Welcome to the Chevereto User Community!

    Here, users from all over the world come together to learn, share, and collaborate on everything related to Chevereto. It's a place to exchange ideas, ask questions, and help improve the software.

    Please keep in mind:

    • This community is user-driven. Always be polite and respectful to others.
    • Support development by purchasing a Chevereto license, which also gives you priority support.
    • Go further by joining the Community Subscription for even faster response times and to help sustain this space

snippets/theme_colors.css.php Overides Custom CSS

Status
Not open for further replies.

SirMoo

💖 Chevereto Fan
theme_colors.css.php is used for Main Color and is is invoked in <?php CHV\Render\show_theme_inline_code('snippets/theme_colors.css'); ?> and is displayed as inline css and not a .css file. Because this is inline it overides any custom CSS as it's invoked the line after the code.

Easy solution is to just move that line in header.php to above the custom css code that way custom css changes for parts of that are not not modified when that line is invoked. This will allow for more fluid modifications.
 
I will move the custom css hook after that line. By the way, at the present time you can use custom_hooks/head to inject code after the theme colors stuff.
 
Great! =D

I didn't really try to mess around with custom hooks. I simply moved the line in the file and my changes applied. It's a bit easier than editing a secondary file and simply editing the custom CSS page.

Performance wise... Would it be better to migrate all custom css into the hooks or using the custom css that pulls from the database?
 
Status
Not open for further replies.
Back
Top