Topic: Custom style.css won't load in laravel...

Mario Otmacic pro asked 6 years ago


Dear mdbootstrap, I am using mdb pro with laravel. And i want to change custom style.css but it doesn't work. I settled links like this:<!-- Bootstrap core CSS --> <link href="{{asset('mdb/css/bootstrap.min.css')}}" rel="stylesheet"> <!-- Material Design Bootstrap --> <link href="{{asset('mdb/css/mdb.min.css')}}" rel="stylesheet"> <!-- Your custom styles (optional) --> <link href="{{asset('mdb/css/style.css')}}" rel="stylesheet"> And do some changes in style.css: .bg-primary {background-color: #0A002B !important;} and for example change bg color of navbar: <nav class="navbar navbar-expand-lg  bg-primary"> And custom css wont' load. I am not using webpack, just custom style.css. Do you know where is problem? Thanks for answer.

Bartłomiej Malanowski staff commented 6 years ago

Where did you put your assets in laravel? Do you receive any console logs?

Mario Otmacic pro commented 6 years ago

I put my assets in public/mdb folder. No, I don't receive any console logs.

Bartłomiej Malanowski staff commented 6 years ago

Did you try to open http://yourwebsite/assets/mdb/css/mdb.min.css? If so, can you access this file directly using direct URL?

Mario Otmacic pro commented 6 years ago

http://talenti.test/mdb/css/bootstrap.min.css This is url where i can access. /*! * Bootstrap v4.0.0 (https://getbootstrap.com) * Copyright 2011-2018 The Bootstrap Authors * Copyright 2011-2018 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) */:root{--blue:#007bff;--indigo:#6610f2;--purple:#6f42c1;--pink:#e83e8c;--red:#dc3545;--orange:#fd7e14;--yellow:#ffc107;--green:#28a745;--teal:#20c997;--cyan:#17a2b8;--white:#fff;--gray:#6..........etc

Mario Otmacic pro commented 6 years ago

also, i have access in this direct link http://talenti.test/mdb/css/style.css and this file is empty although i have a lots of custom css in my editor. I don't know why is this empty.

Bartłomiej Malanowski staff commented 6 years ago

Please share your project with me at b.malanowski@mdbootstrap.com

Mario Otmacic pro commented 6 years ago

I send to you github repository of my project on mail. Have you looked at the mail?

Bartłomiej Malanowski staff commented 6 years ago

I sent you an email ;)


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Opened

Specification of the issue

  • ForumUser: Pro
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No
Tags