BG colors don’t show in editor mode
-
Hello, and thanks for this great plugin! I like Bootstrap columns more than default ones and your plugin makes it possible to use them really easy.
As a theme, I use WP Bootstrap Starter + Child and I wanted to add custom bg-colors for columns, so I followed your instructions:
1) I added block-filter.js:function myColumnBgColorOptions( bgColorOptions ) { bgColorOptions.push( {name:'primary', color:'#031251'}, {name:'secondary', color:'#245011'}, {name:'primary-light', color:'#7288d2'}, {name:'secondary-light', color:'#8db351'}, {name:'dark', color:'#1e1e1c'}, {name:'light', color:'#ececec'}); return bgColorOptions; } wp.hooks.addFilter( 'wpBootstrapBlocks.column.bgColorOptions', 'myplugin/wp-bootstrap-blocks/column/bgColorOptions', myColumnBgColorOptions );
2) added it from functions.php as you described here https://www.ads-software.com/support/topic/custom-row-types/
3) now I can see new color circles in editor-panel, but if I choose one it doesn’t affect column in editor mode (unlike your preset primary and secondary colors which applies to columns even in editor-mode).
4) out of editor-mode colors shows nicely as expected.
Is it possible to make colors work in editor-mode?
Thanks!
- The topic ‘BG colors don’t show in editor mode’ is closed to new replies.