i saw that the wrong file is wp-content/plugins/all-bootstrap-blocks/blocks/button/style.css
That css imports bootstrap-icon if I insert a button block. In my opinion this behavior is wrong, which bootstrap css to import should only be done from settings, if I already have bootstrap in theme and don’t want css added by plugin, I should be able to.
Hi @kyashan22
The reason for this is because there are a number of blocks (the button block for example) that allow the user to include an icon. However, if you do not have the Include Bootstrap Icon CSS checked then this functionality would not work so I have had to include it in the buttons style.
I will have a look into removing it from the button style and check if any blocks are on the page that require the icon css then enqueueing it in the head instead, this way it would only be added to the page once.
Thanks
Miles
Hi @kyashan22
First of all, massive apologies for the delayed response!
I have just released an update which resolves this issue. Instead of loading the icon styles multiple time it will now only be loaded once either if the Bootstrap Icons are turned on or if a block is on the page that can have icons.
Thank you for your patience on this and thank you for making me aware of the issue. If you have any more problems please don’t hesitate to get back in touch.
Thanks
Miles