Site logo

Archived topic

Colour Palette for GB BLocks

5 replies · Started by Ian on September 21, 2020

Viewing posts 1–6 of 6

I have implemented a custom colour palette for Customizer. How do I use these custom colours inside GB Blocks?

Beautiful, that worked perfectly. Just to make sure, it's normal that Wordpress won't accept this snippet. I had to use SFTP to add the script to functions.php.

Make sure you aren't adding it in the parent theme's function.php as it will be erased during updates.

You will need to use one of these methods here:
Adding PHP: https://docs.generatepress.com/article/adding-php/

Code Snippets plugin is the easiest if you aren't using a child theme already.

Thanks Leo. I have tested this again and it seems Wordpress or my host has disabled these particular functions from being entered into Wordpress itself. I had to SFTP in and update functions.php. Wanted to report back to share. Thanks again!

No problem :)

This archived topic is closed to new replies.