Solved

Bootstap Icons

Posted on 2016-11-23
3
71 Views
Last Modified: 2016-11-25
I have a Bootstrap form that is using glyphicons.  I need to replace one of them with a custom icon.

First, I need to know how to swap out one of the out of the box bootstrap icons with my own and once I know how to do that I need to find an ICON generator or method to build my own that will look like text in a button.  One such button needs to say "Go".

Here is a code fragment where I want to make this change:
<div id="advancedInitial" style="display:none">
      <div class="container-fluid">
        <label for="person">Who Do You like?</label>
        <div class="input-group">
          <input type="text" id="txtSearchSelectedPeopleInitial" class="form-control" name="field1"/>
          <div class="input-group-addon"><a href="#" onClick="SearchRequest(); return false;" class="glyphicon glyphicon-search"></a></div>
        </div>
      </div>
</div>

Open in new window

0
Comment
Question by:Howard Bash
  • 2
3 Comments
 
LVL 82

Accepted Solution

by:
leakim971 earned 500 total points
ID: 41899372
what about : https://jsfiddle.net/do5ftjna/2/
you don't really need the span around the GO...

<div id="advancedInitial">
      <div class="container-fluid">
        <label for="person">Who Do You like?</label>
        <div class="input-group">
          <input type="text" id="txtSearchSelectedPeopleInitial" class="form-control" name="field1"/>
          <div class="input-group-addon"><a href="#" onClick="SearchRequest(); return false;" class=""><span>GO</span></a></div>
        </div>
      </div>
</div>

Open in new window


about gliphicone-search, look inside this file, line 309 : https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.css

.glyphicon-search:before {
  content: "\e003";
}

Open in new window

0
 
LVL 1

Author Comment

by:Howard Bash
ID: 41899453
What about icomoon and/or creating your own SVG file?
0
 
LVL 82

Expert Comment

by:leakim971
ID: 41899893
i don't kno iconmoon. If it allow you creatz your own fonts it's all good. After that you just need to use your on class which use your custom fonts
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question