Archived topic
Extra customizer config field
5 replies · Started by George on November 6, 2020
I am using some CSS through a child theme to add a bottom border with a certain color to the comment h3 heading and a different color to the h3 ::before pseudo-element. I am looking for a way to add a Customizer setting in the Colors section to be able to change those two colors from the Customizer. What's the best way to approach the issue?
Hi George,
It's not very easy to create your own customizer function and we can't really help with that here - you will basically need to create your own theme and copy over GP's existing options.
I don't believe there is a way to create a child theme for this as WordPress only allows child theme to overwrite files on the top level and the customizer.php file is not one of them:
https://github.com/tomusborne/generatepress/blob/master/inc/customizer.php
Thanks for your understanding :)
Hi Leo. I have actually sorted it out, thanks for the pointer. It's possible by utilizing WP customizer functions. I will write a small tutorial and post it here for future reference.
Sounds good :)
As promised, here is a link to a tutorial I created:
Thanks!