• Resolved Ben

    (@bene-2)


    Hi there!
    Thanks for this plugin, it is really useful!
    I hope you can help me with my questions:

    1.) I prefer deactivating the bootstrap CSS/JS includes coming from this plugin, since I am already using a bootstrap theme. I’ve noticed that the plugin is still including its own CSS file:
    all-bootstrap-blocks/build/style-index.css (although I have deactivated the includes).
    Is this an expected behaviour?

    2.) My theme is only using the bootstrap components I really need, so for example I have dequeued offcanvans, modals, etc. in order to keep it lightweight. Is there a way to deactivate specific components from this plugin?

    3.) Is it possible to overwrite the template of a specific block in your own theme? I saw another bootstrap plugin where you can copy the original template from the plugin and paste it into your own theme in order to modify it.

    Thanks in advance!

Viewing 1 replies (of 1 total)
  • Plugin Author Miles

    (@areoimiles)

    Hi @bene-2,

    Thanks for reaching out! See answers to each of your points below.

    In order to make sure all of the Bootstrap components work correctly within WP there are certain instances where additional divs and other elements are required that are part of the suggested Bootstrap markup. On their own these can break certain bits of Bootstrap styling so that CSS file resolves any styling issues that may occur due to the additional markup. If you do wish to remove it you should be able to by adding something like the below to your functions.php file but, there may be some styling issues depending on what blocks are used on your pages, so use with caution.

    add_action( 'wp_enqueue_scripts', 'deregister_styles', 100 );
    function deregister_styles() {
        wp_dequeue_style( 'areoi-style-index' );
    }

    I have just released an update (1.3.15) and it I have added the ability to exclude blocks from the page editor. You can do this by logging into your dashboard, then selecting Bootstrap from the left hand menu, then scroll down the options and you should see a section labelled ‘Exclude Blocks’, simply select the blocks you wish to exclude and they will no longer be available within the editor.

    Finally, yes it is possible to override block templates within your theme. Details on how to do it can be found here https://allbootstrapblocks.com/all-bootstrap-blocks/documentation/getting-started/overriding-block-templates/

    Hopefully, this answers your questions, but if you have anymore please don’t hesitate to get back in touch.

    Thanks
    Miles

    P.S: if you like our plugin and are happy with the support we have provided, we would really appreciate it if you could take a few seconds to leave us a positive review.
    https://www.ads-software.com/support/plugin/all-bootstrap-blocks/reviews/#new-post

Viewing 1 replies (of 1 total)
  • The topic ‘Deactivating bootstrap files and changing block templates’ is closed to new replies.