• Resolved kyashan22

    (@kyashan22)


    Hi, I checked “Include Bootstrap Icon CSS”, I noticed that now in the Chrome inspector network I have bootstrap-icons.css, bootstrap-icons.css and style.css?ver=1688848383 (which contains @import url (‘../../src/bootstrap-icons-1.10.2/bootstrap-icons.css’);
    Why does the plugin import the same icon css three times?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter kyashan22

    (@kyashan22)

    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.

    Plugin Author all_bootstrap_blocks

    (@areoimiles)

    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

    Plugin Author all_bootstrap_blocks

    (@areoimiles)

    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

    Thread Starter kyashan22

    (@kyashan22)

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Include Bootstrap Icon CSS’ is closed to new replies.