- This topic has 7 replies, 3 voices, and was last updated 3 years, 3 months ago by Tom.
May 30, 2018 at 9:00 pm #588409Paul
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!GeneratePress 2.1.2May 31, 2018 at 8:50 am #588882LeoStaffCustomer SupportMay 31, 2018 at 10:52 am #588980Paul
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.May 31, 2018 at 8:38 pm #589247TomLead DeveloperLead Developer
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 🙂June 1, 2018 at 9:15 am #589648Paul
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?June 1, 2018 at 10:04 am #589666TomLead DeveloperLead Developer
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.June 1, 2018 at 11:08 am #589702Paul
OK, cool. This is very good to know! Thanks so much, Tom.June 1, 2018 at 11:22 am #589706
- You must be logged in to reply to this topic.