wordpress-fontawesome icon indicating copy to clipboard operation
wordpress-fontawesome copied to clipboard

Enable changing icon in icon block

Open STV11C opened this issue 1 year ago • 2 comments

@mlwilkerson - It's very exciting to see the v5.0.0 plugin finally has a proper Block.

One obvious limitation I noticed is that you cannot change the icon once it's set on the block.

However, if using the inline icon picker on the Paragraph block, you can change the icon.

STV11C avatar Feb 25 '25 08:02 STV11C

@STV11C Yes, I remember discussing that, though my memory is fuzzy. It might be that it seemed so easy to delete a block and add a new one that it wasn't worth it (at the time) to make it possible to change the icon of an existing block.

For the inline icon, by contrast--since it's inside another block with content, like a paragraph--then it was more important to be able to change it.

Again, my memory is fuzzy.

Could you elaborate about how it would be valuable or useful to be able to change the icon in an icon block?

mlwilkerson avatar Feb 25 '25 23:02 mlwilkerson

@mlwilkerson thanks for the quick reply.

It would be valuable to change the icon on the existing block for the following reasons:

  • you have several icon blocks on a page and have set some of the settings (e.g. colour, size etc) and you want to just change the icon, whether to explore a different icon quickly, or even the same icon just in a different style. To have to delete the icon block, add a new one, redo all the settings again seems like a limitation for how flexible WordPress blocks should behave. Imagine having to do this with the Image Block when wanting to try a different image.
  • consistent icon options between the inline icon and separate icon block makes sense as it's the same Plugin, and seems like an essential option.
  • I feel like other users will raise this limitation soon as well.

Just my thoughts :)

STV11C avatar Feb 26 '25 12:02 STV11C

A case I am running into is, I have a custom block in which I have an innerBlock template that requires a single icon. If the user chooses the wrong icon (or duplicates the block after setting the icon), there is no way to change the icon, and if the user removes the icon, there is no way to add a new one. The user must delete the entire block and create a new one (there are several settings and innerBlocks that need configuration).

I am pretty new at creating blocks, so maybe there is another way for me to create the block and still enforce our design requirements, but if I could simply swap the icon, it would be much easier.

scottsawyer avatar Apr 23 '25 23:04 scottsawyer

Thanks for the report, @scottsawyer. It helps us set priorities!

mlwilkerson avatar Apr 23 '25 23:04 mlwilkerson

Adding another +1 from a customer support request for this

mlwilkerson avatar Sep 03 '25 16:09 mlwilkerson