Administration<...">
All geek questions in one place

Bootstrap glyphics do not appear

<div class="container-fluid"> <div class="sidebar left"> <div id="app-navigation" class="well"> <h5>Administration</h5> <ul class="administration-list"> <li class="user"><a href="#user">User</a></li> <li class="emails"><a href="#emails">Emails</a></li> <li class="settings"><a href="#Settings">Settings</a></li> <li class="logs"><a href="#Logs">Logs</a></li> <li class="help"><a href="#Help">Help</a></li> </ul> <h5>Managing tools</h5> <ul class="tools-list"> <li class="ressource"><a href="#Ressources"><i class="icon-home icon-white" </i>Ressources</a></li> <li class="playlist"><a href="#Playlist">Playlist</a></li> <li class="schedule"><a href="#Schedule">Schedule</a></li> <li class="stations"><a href="#Stations">Stations</a></li> </ul> </div> </div> </div> 

I do not understand why my icon does not appear. I am starting a new project and decided to try initializr with bootstrap . I just can’t make this icon. It seems there is an invisible icon in front of my text ... I also checked the documentation here . I also checked inside my boostrap.less, sprites.less and variables.less (everything seems to be fine ...).

My variable is set correctly, and my image (PNG) is in my .. / img folder.

 // Sprite icons path // ------------------------- @iconSpritePath: "../img/glyphicons-halflings.png"; @iconWhiteSpritePath: "../img/glyphicons-halflings-white.png"; 
+6
html css less twitter-bootstrap
fneron Jul 12 '12 at 21:08
source share
4 answers

The variables.less file is located in the bootstrap folder, so you need one more level to access root.

Try setting the path to:

 @iconSpritePath: "../../img/glyphicons-halflings.png"; @iconWhiteSpritePath: "../../img/glyphicons-halflings-white.png"; 
+14
Bruno campos Jul 12 '12 at 21:50
source share

The latest Bootstrap icons include a new class glyphicon:

 <i class="glyphicon glyphicon-heart"></i> 

In some cases, this is likely to be a problem.

+4
Duther Sep 26 '13 at 16:35
source share

I had to copy the img folder from bootstrap to a smaller folder ... or you could change this variable to point to the root / img folder.

0
fneron Jul 12 '12 at 21:46
source share

Open the rewrites.php file in the "lib" folder. Add the following line to the 'roots_add_rewrites ($ content)' function:

  'assets/fonts/(.*)' => THEME_PATH . '/assets/fonts/$1', 

The function should look like this:

 function roots_add_rewrites($content) { global $wp_rewrite; $roots_new_non_wp_rules = array( 'assets/css/(.*)' => THEME_PATH . '/assets/css/$1', 'assets/js/(.*)' => THEME_PATH . '/assets/js/$1', 'assets/img/(.*)' => THEME_PATH . '/assets/img/$1', 'assets/fonts/(.*)' => THEME_PATH . '/assets/fonts/$1', 'plugins/(.*)' => RELATIVE_PLUGIN_PATH . '/$1' ); $wp_rewrite->non_wp_rules = array_merge($wp_rewrite->non_wp_rules, $roots_new_non_wp_rules); return $content; } 
0
Daniel Cook Aug 23 '13 at 15:08
source share

Source: https://habr.com/ru/post/920373/

More articles:

  • how to sort geographic data for quick search - sorting
  • How could I use Jython threads since they were Java threads? - java
  • Are there any known Java implementations for the OAuth2 'mac' token? - java
  • What is the fastest way to apply t.test to each column of a large matrix? - matrix
  • JLabel drag and drop with TransferHandler (drag and drop) - java
  • Problems with jQuery booklets - jquery
  • Next () scope in Python - python
  • issubclass () returns False in the same class imported from different paths - python
  • Button vs link vs input type = "submit" in form - javascript
  • Windows authentication error on only one machine - google-chrome

All Articles

Geek Questions | 2019