Comments (9)
-
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!
- Text vs HTML ? Sorry I don't understand. Please clarify...
from laravel-theme.
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.
from laravel-theme.
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.
Hardcoding paths will break many themes...
from laravel-theme.
Yeah, I agree.
But what about the other problem?
from laravel-theme.
It renders it as text and moves the rest of the header to under the body. Look:
from laravel-theme.
Any ideas on the problem?
from laravel-theme.
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.
{{ Theme::url('css/bootstrap.min.css') }}
Works fine! :)
from laravel-theme.
Related Issues (20)
- Potential issues with Hyn Tenancy (View [auth.login] not found.) HOT 9
- Lumen ? HOT 2
- Add support for Laravel 6.0 HOT 2
- mkdir(): No such file or directory HOT 1
- @js() doesnt accept http/https HOT 1
- Theming email template HOT 1
- Support for array dot
- Check, if cache file exists instead of having config value
- Timeline for laravel 7 support? HOT 1
- Anyone get this working with view composers for each theme? (overlapping view names) HOT 2
- View file path issue when loading from Namespace HOT 2
- Included files not rendering after upgrade HOT 2
- vendor views are not rendering with https://github.com/Okipa/laravel-table/ HOT 1
- Markdown not looking in right directories
- Package is not compatible with laravel 9 HOT 1
- Has this package been tested with any newer versions of Laravel?
- the directory separator is not correct for Windows.
- Allowed to keep the view paths added at runtime after setting theme
- Incompatible with Laravel 10 HOT 2
- Deprecation Warnings on PHP 8.2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-theme.