Base solution for your next web application
Open Closed

How to use Semantic UI #3330


User avatar
0
alaamh created

I would like to use semantic-ui for the public web site (main) and keep bootstrap for the control panel (admin site), what could be the right approach?


3 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Public website section has a seperate layout file. So you can include semantic ui related css & js files to this layout and use it as you like.

    Thanks.

  • User Avatar
    0
    alaamh created

    Thank you ismcagdas,

    I'm able to load semantic ui when loading 'main' app by changing the link to template in head like this:

    $('head #template').attr('href', '/assets/metronic/libs/semantic/semantic.min.css');
    

    so when main route is visited, I replace bootstrap link using jquery, Is this Ok?

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    I haven't tried it before, is this working ? Are you using angular1 or angular 2 ?

    Thanks.