question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

sidebar-toggle icon isn't set

See original GitHub issue

Issue type:

  • Feature request
  • Bug report
  • Documentation

Environment:

  • AdminLTE Version: Newest
  • Operating System: Windows 10
  • Browser (Version): Firefox (61.0.2)

Description:

Because i use a template engine, if have converted the html files to template files. I don’t know what i have doing, but now everything works except the sidebar-toggle icon: dd

I have included these css files:

"css": [
        "bower_components/bootstrap/dist/css/bootstrap.min.css",
        "bower_components/font-awesome-5.0.9/css/font-awesome-all.min.css",
        "bower_components/Ionicons/css/ionicons.min.css",
        "bower_components/datatables.net-bs/css/dataTables.bootstrap.min.css",
        "dist/css/AdminLTE.min.css",
        "dist/css/skins/_all-skins.min.css",
        "style/tabs.css",
        "style/icheck/flat/green.css",
        "style/tags/tags.css"
    ],

Included javascript files:

"js_footer": [
        "bower_components/jquery/dist/jquery.min.js",
        "bower_components/bootstrap/dist/js/bootstrap.min.js",
        "bower_components/datatables.net/js/jquery.dataTables.min.js",
        "bower_components/datatables.net-bs/js/dataTables.bootstrap.min.js",
        "bower_components/jquery-slimscroll/jquery.slimscroll.min.js",
        "style/icheck/icheck.min.js",
        "bower_components/fastclick/lib/fastclick.js",
        "dist/js/adminlte.min.js",
        "dist/js/demo.js"
    ]

Also i have found these lines of css, which can be relevant:

.main-header .sidebar-toggle:before {
  content: "\f0c9";
}

HTML code:

<!-- Sidebar toggle button-->
<a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button">
    <span class="sr-only">Toggle navigation</span>
    <span class="icon-bar"></span>
    <span class="icon-bar"></span>
    <span class="icon-bar"></span>
</a>

But this only set’s a character (the image?) before the link?

Can you say me, where i can find the icon or which dependency it has? Or is the icon injected by javascript? Thank you very much!

Btw, the project is open source: https://github.com/JuKu/JuKuCMS

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:6

github_iconTop GitHub Comments

15reactions
chris-ratcliffecommented, Jan 8, 2019

@JuKu , I had this issue as well when I moved to the newer font awesome. It is discussed here: https://stackoverflow.com/questions/47788847/fontawesome-5-font-family-not-work . I was able to fix the issue by changing the AdminLTE.css file to modify the original font-family and also specify a specific font-weight:

.main-header .sidebar-toggle {
  float: left;
  background-color: transparent;
  background-image: none;
  padding: 15px 15px;
  /* font-family: fontAwesome; */
  font-family: "Font Awesome\ 5 Free"; /* cjr */
}
.main-header .sidebar-toggle:before {
  content: "\f0c9";
  font-weight: 900; /* cjr */
}
3reactions
REJackcommented, Jul 10, 2019

I’ve added ability to use fontawesome 5 icon on sidebar-toggle in master branch.

In the next release (v2.4.13) you only need to add .fa5 to .sidebar-toggle.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Sidebar toggle button doesn't work after update - Stack Overflow
After updating packages to the newest versions, sidebar toggle button has disappeared. It's not displayed properly (there should be 3 ...
Read more >
My toggle navbar doesn't work - HTML & CSS - SitePoint Forums
Hi guys, new guy here. I am trying to develop an application and i created a navbar which i would like it to...
Read more >
Microsoft Edge's new sidebar widgets are actually worth using
First, though, the Edge sidebar is worth exploring. At the top of the column of icons is a Search icon, with the same...
Read more >
Help sidebar transition overlaying my collapse button (Example)
this project has a main page with a button in the upper right corner when click a sidebar is to transition in from...
Read more >
Sidebar Toggle | Mendix Documentation
A sidebar toggle is a button that when pressed will make either a left or a right region of a scroll container appear...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found