Site logo

Archived topic

Modify Mantle Child Theme Colors via functions file?

7 replies · Started by Paul on May 30, 2018

Viewing posts 1–8 of 8

I tried modifying the Mantle child theme's colors via the functions.php file, without success. Is there any way to do this? I'd rather not have to change it via custom CSS if possible. Cheers!

Hi there,

What are you trying to modify?

The customizer options won't work?

I recently started playing around with the GP child themes (Mantle, Forefront, etc) and noticed that colors, typography, etc were set in the functions file, so I tried to bulk modify all the colors via the functions.php file (change the blues to greens, etc). Color and typography options in the Customizer are limited when not using GPP -- which I have, but it is not installed on this particular site. Is there any way to modify Mantle's colors via its' functions.php file on a live site -- or do the colors, typography and other customizations in functions.php need to be modified before the theme is installed? Seems to me that customizing and color-themeing a site would go a lot faster via functions rather than the Customizer.

Those values you're seeing are defaults, meaning they will apply only if the Customizer hasn't been saved.

Once the values are saved, GP will take the values from the database instead of the functions.

Let me know if you need more info :)

So its acting only as an initial setup file for the theme, but modifying it once the theme is activated won't change anything. Is it essentially a functions.php version of GPP export settings files?

Exactly. All of our settings have defaults to them, which we can filter.

However, those defaults only apply when nothing exists in the database for that value.

OK, cool. This is very good to know! Thanks so much, Tom.

You're welcome :)

This archived topic is closed to new replies.