Closed (fixed)
Project:
Bootstrap Theme Shortcodes
Version:
7.x-1.6
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
29 Sep 2014 at 11:16 UTC
Updated:
15 Oct 2014 at 13:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
dreamleafYou need to add the icon name to the shortcode... so in this instance it would be:
[glyphicons name="glass"][/glyphicons] - for a standalond icon.
Where you currently have the word glass can go the content you want to prefix with an icon, as in:
[glyphicons name="glass"] I drink wine in a glass, sometimes out of the bottle too![/glyphicons]
Hope that helps!
Comment #2
duneblMany thanks for your answer... But I think I have a problem with my config because:
Notice: Undefined variable: glyphicons in bs_shortcodes_shortcode_glyphicons() (line 15 of /var/www/drupal/sites/all/modules/bootstrap_shortcodes/inc/elements/glyphicons.php).Comment #3
dreamleafI don't know how you're actually getting the icon to display without specifying using name=""... weird.
I've just tested again and [glyphicons name="glass"] Text which should have an icon before it.[/glyphicons] works just fine, no errors.
1. The first error you're seeing is because there is no text within the shortcode - this is easily solved if you just need just the icon - simply put a space between your shortcode brackets [glyphicons name="glass"] [/glyphicons]
So basically, it's a combination of the 2 ways you've tried!
Comment #4
duneblOk, many thanks!
You solved my problem: To have only the icon, I just have to add a space as you show me: [glyphicons name="glass"] [/glyphicons]
Comment #5
dunebl