Title: Missing bootstrap icons
Last modified: July 26, 2017

---

# Missing bootstrap icons

 *  Resolved [tkchouaki](https://wordpress.org/support/users/tkchouaki/)
 * (@tkchouaki)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/missing-bootstrap-icons/)
 * Hello,
    i’ve noticed not all the bootstrap icons are available (for example fa-
   hotel). When i checked the file helpers.php i found that you are using regex (
   line 240) to get the classes, but that regex didn’t match all the classes, especially
   those like .fa-hotel:before, .fa-bed:before { content: “\f236″; } So i modified
   the regex & the code a little bit to solve the problem & here’s the code
 *  //old pattern
    //$pattern = ‘/\.(fa-(?:\w+(?:-)?)+):before\s+{\s*content:\s*”(.
   +)”;\s+}/’;
 *  //by chouaki tarek
    $pattern = ‘/(\.(?:fa-(?:\w+(?:-)?)+):before(?:,\s*\.(?:
   fa-(?:\w+(?:-)?)+):before)*)\s*{\s*content:\s*”(.+)”;\s*}/’; $sub_pattern = ‘/(
   fa-.+?):before/’; preg_match_all( $pattern, $response[‘body’], $matches, PREG_SET_ORDER);
 *  $icons = array();
 *  foreach ( $matches as $match )
    { preg_match_all($sub_pattern, $match[1], $sub_matches,
   PREG_SET_ORDER); foreach($sub_matches as $sub_match) { $icons[ str_replace( ‘
   fa-‘, ”, $sub_match[1] ) ] = $match[2]; } }

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Contributor [Code Parrots](https://wordpress.org/support/users/codeparrots/)
 * (@codeparrots)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/missing-bootstrap-icons/#post-9355363)
 * Hey [@tkchouaki](https://wordpress.org/support/users/tkchouaki/),
 * Thanks so much for posting a solution here! We will certainly investigate and
   push out an update as soon as possible. We have two other tweaks we need to get
   in there – so it should be in the next day or so.
 * Thanks so much!
 *  Plugin Contributor [Code Parrots](https://wordpress.org/support/users/codeparrots/)
 * (@codeparrots)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/missing-bootstrap-icons/#post-9357693)
 * Hi [@tkchouaki](https://wordpress.org/support/users/tkchouaki/),
 * We’ve gone ahead and pushed out an update (v1.5.1) that should now resolve this,
   and have given you props in the changelog.
 * If for some reason you are still experiencing any issues, feel free to drop a
   comment here and we can re-investigate.
 * Thanks again for reporting the bug.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Missing bootstrap icons’ is closed to new replies.

 * ![](https://ps.w.org/timeline-express/assets/icon-256x256.png?rev=1007462)
 * [Timeline Express](https://wordpress.org/plugins/timeline-express/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/timeline-express/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/timeline-express/)
 * [Active Topics](https://wordpress.org/support/plugin/timeline-express/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/timeline-express/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/timeline-express/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Code Parrots](https://wordpress.org/support/users/codeparrots/)
 * Last activity: [8 years, 10 months ago](https://wordpress.org/support/topic/missing-bootstrap-icons/#post-9357693)
 * Status: resolved