Git Product home page Git Product logo

Comments (9)

igaster avatar igaster commented on August 26, 2024
  1. When you are refering to local files all paths are relative to your theme folder. so the correct is:

    {{Theme::css("css/bootstrap.css")}}

or you can manually build your css/js/img links using:

{{Theme::url("css/bootstrap.css")}}

try it!

  1. Text vs HTML ? Sorry I don't understand. Please clarify...

from laravel-theme.

dsbilling avatar dsbilling commented on August 26, 2024

It works fine when I add "css/" infront of the css file. But you should really hardcode that the css adds "css/", same for js and img.

It renders and text and not HTML. And the template is f'd up of some sort. Tried both a new theme and bootstrap. It jumps to right after the body-tag for some reason.
22-10-2015 22_56_30
22-10-2015 22_55_58

from laravel-theme.

DxCat avatar DxCat commented on August 26, 2024

IMO hardcoding 'css' directory it would make it harder. other people might use something like 'styles' or 'assets' instead of the generic css, so leaving it as is better.

from laravel-theme.

igaster avatar igaster commented on August 26, 2024

Hardcoding paths will break many themes...

from laravel-theme.

dsbilling avatar dsbilling commented on August 26, 2024

Yeah, I agree.

But what about the other problem?

from laravel-theme.

dsbilling avatar dsbilling commented on August 26, 2024

It renders it as text and moves the rest of the header to under the body. Look:
23-10-2015 21_15_29
23-10-2015 21_14_56

from laravel-theme.

dsbilling avatar dsbilling commented on August 26, 2024

Any ideas on the problem?

from laravel-theme.

igaster avatar igaster commented on August 26, 2024

It seems that your editor parses it as text or comment... I will review css output in the next release. Anyway you can generate any link using the general Theme::url function. ie:

<link rel="stylesheet" href="{{Theme::url('css/bootstrap.min.css'}}"></link>

from laravel-theme.

dsbilling avatar dsbilling commented on August 26, 2024

{{ Theme::url('css/bootstrap.min.css') }}
Works fine! :)

from laravel-theme.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.