J
J
Justique2016-02-29 16:38:26
Laravel
Justique, 2016-02-29 16:38:26

How to load css on a specific blade?

The bottom line is that there is a main blade container in which head contains plug-in styles, so here's how to make sure that some styles are connected only on certain pages, for example, if the page /homethen connect more and

<link href="../assets/global/plugins/datatables/datatables.min.css" rel="stylesheet" type="text/css" />
<link href="../assets/global/plugins/datatables/plugins/bootstrap/datatables.bootstrap.css" rel="stylesheet" type="text/css" />

Maybe there is an aviable in('home') handler?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stanislav Pochepko, 2016-02-29
@Justique

Make a css section

<link href="../assets/global/plugins/datatables/datatables.min.css" rel="stylesheet" type="text/css" />
<link href="../assets/global/plugins/datatables/plugins/bootstrap/datatables.bootstrap.css" rel="stylesheet" type="text/css" />
@yeild('css')

And then in certain templates do this
@section('css')
 твои css подключаешь здесь 
@stop

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question