R
R
Roman Kuzmenko2016-11-12 21:01:08
MySQL
Roman Kuzmenko, 2016-11-12 21:01:08

How to add custom text to Navbar in Yii2?

Hello! Please tell me how to add your own text/button to Navbar in Yii2 and that it was not hidden in the pull-out menu at low resolution.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry, 2016-11-12
@slo_nik

Good evening.
In the Nav settings set encodeLabels => false, then the html will not be encoded and will be displayed as is.
In order not to hide at low resolution - edit css.

M
Maxim Timofeev, 2016-11-14
@webinar

Hiding elements on different screens is css and bootstrap, yii has nothing to do with it. Set the element to be left with dispalay:block !important;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question