Title: Default Settings (Options)
Last modified: July 5, 2022

---

# Default Settings (Options)

 *  Resolved [bw10](https://wordpress.org/support/users/bw10/)
 * (@bw10)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/default-settings-options/)
 * Really liking the plug-in!
 * Curious, how does one set or override the options that are set in this plug-in?
 * For example: I see src/save.js there is a setting for “iconWidth”. I’d like to
   either be able to set this to something other than 48px for all icons or just
   my custom icon set. I’d even like to set the color too.
 * Is something like this possible?

Viewing 1 replies (of 1 total)

 *  Plugin Author [Nick Diego](https://wordpress.org/support/users/ndiego/)
 * (@ndiego)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/default-settings-options/#post-15816787)
 * Hi [@bw10](https://wordpress.org/support/users/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](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-variations/)
   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 3 years, 9 months ago by [Nick Diego](https://wordpress.org/support/users/ndiego/).

Viewing 1 replies (of 1 total)

The topic ‘Default Settings (Options)’ is closed to new replies.

 * ![](https://ps.w.org/icon-block/assets/icon-256x256.png?rev=3122589)
 * [The Icon Block](https://wordpress.org/plugins/icon-block/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/icon-block/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/icon-block/)
 * [Active Topics](https://wordpress.org/support/plugin/icon-block/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/icon-block/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/icon-block/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Nick Diego](https://wordpress.org/support/users/ndiego/)
 * Last activity: [3 years, 9 months ago](https://wordpress.org/support/topic/default-settings-options/#post-15816787)
 * Status: resolved