liip / bootstrap-blocks-wordpress-plugin

Bootstrap Gutenberg Blocks for WordPress

Home Page:https://wordpress.org/plugins/wp-bootstrap-blocks/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to Change Background Colors In PHP

gpsugy opened this issue · comments

The docs say that background colors for columns can be modified in JavaScript, labeled "wpBootstrapBlocks.column.bgColors." Is there a way to configure these options using PHP add_filter? If so, what is the syntax? A reference listing out all the PHP equivalents of the JavaScript ones would be also much appreciated.

Great plugin, by the way!

Hi @gpsugy. There is sadly no way to use the JavaScript filters in PHP. This is not possible since they modify the Gutenberg editor on the client side.

@tschortsch I see. Thanks for your reply. To utilize the JavaScript filters, I can follow the instructions at the following link, correct? #10

Yes exactly!