Copied to clipboard

Flag this post as spam?

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


  • Darren Hunter 103 posts 194 karma points
    Oct 25, 2022 @ 12:44
    Darren Hunter
    0

    Umbraco10 Forms Remove reference to bootstrap3 in Model.

    Hi,

    Is there a way to remove any reference to bootstrap3 in Umbraco 10 forms, we do not want to use the the build in version of the files that are in Views/Partials/Forms/Themes/bootstrap3-horizontal/ i want to use the costume ones I have created in Views/Partials/Forms/Themes/default/ I made a small change in the Views/Partials/Forms/Themes/default/Render.cshtml that will change the them from bootstrap3-horizontal to default.

    Hack is: if (Model.Theme == "bootstrap3-horizontal" || Model.Theme =="" ) { Model.Theme = "default"; }

    But this is more of a hack then a fix, is there any way to stop any reference to bootstrap3-horizontal theme.

    The reason I am asking this is this site is an upgrade from a version 8 site and they have a couple of default themes and we do not want them to even see bootstrap3 when they are adding forms to pages.

Please Sign in or register to post replies

Write your reply to:

Draft