Hi @bw10,
Thank you for reaching out and I apologize for the delayed reply! Unfortunately, there is no current way to override the defaults via the plugin directly.
That said, you can create a block variation that should accomplish what you are looking for. If you create and enqueue a JavaScript file in your theme with the following code, you will see a new block called “Custom Icons” in the Inserter. When you use this block, the icons will be 24px wide by default and have the icon color #FF7700 (orange). The original block will be hidden since we have told WordPress that this new block is the default.
wp.domReady( () => {
wp.blocks.registerBlockVariation( 'outermost/icon-block', {
name: 'custom-icons',
title: 'Custom Icons',
isDefault: true,
attributes: { width: 24, iconColorValue: "#FF7700" },
} );
} );
You can of course modify the code to meet your needs. I will try and get a more thorough tutorial on how to do this put together over the weekend. Once complete, I will link here.
Let me know if I can be of further assistance.
Best,
Nick
-
This reply was modified 2 years, 4 months ago by
Nick Diego.