Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Hassan 79 posts 264 karma points
    Jun 26, 2021 @ 08:59
    Hassan
    0

    Use Bootstrap 4 in Umbraco custom sections

    Hi every one!

    I use Umbraco 8.13.0. I implemented a custom section and tree according to here.

    I want to use Bootstrap 4 in custom sections and trees. I added Bootstrap files in a html file that implemented in custom tree and use Bootstrap classes such as "table". But this is not work in custom trees.

    What is the problem? What can I use Bootstrap 4 or higher in Umbraco custom sections and trees?

    With thanks.

  • Dan Diplo 1540 posts 6094 karma points MVP 4x c-trib
    Jun 26, 2021 @ 18:50
    Dan Diplo
    0

    Umbraco is built on a highly-modified version of Bootstrap 2. If you upload Boostrap 4 then you will end up clashing with the inbuilt classes and probably also overwrite a lot of the core CSS for the rest of the site.

    So you are best of using the Umbraco UI components as outlined here - https://our.umbraco.com/apidocs/v8/ui/#/api/

    So, for instance, if you wanted to create a table you'd use the <umb-table> directive and it would then match the style of the rest of the back-end.

  • Hassan 79 posts 264 karma points
    Jul 05, 2021 @ 13:43
    Hassan
    0

    Hi Dan.

    I want to use Bootstrap 4 only in one page in custom sections, I don't want to use it in rest of the site.

    Is it not possible to use Bootstrap 4 or higher in Umbraco in this case?

Please Sign in or register to post replies

Write your reply to:

Draft