-1

I know there are a lot of questions in stackoverflow. But none of them has solved my problem.

Especially I checked this Bootstrap 3 Glyphicons CDN

But it didn't work for me.

My website http://mywebsite.com doesn't show icons. I added everything.

Community
  • 1
  • 1
SNaRe
  • 1,997
  • 6
  • 32
  • 68

2 Answers2

2

You are overwriting the Glyphicon font-family. You must include Bootstrap's css file first before including yours.

tinfoilboy
  • 926
  • 10
  • 17
  • I moved my custom css after bootstrap's css. Nothing changed. – SNaRe Mar 01 '14 at 08:33
  • You are also overriding the glyphicon class, you must change html * to just html in your custom.css file. – tinfoilboy Mar 01 '14 at 08:33
  • Works like a charm. But I will need your 1 more help. Since I will remove this, I gotta put this to somewhere so I have wrapper called 'wrap', How I will force to set the font to 'Open Sans' as I did with HTML – SNaRe Mar 01 '14 at 08:40
  • The font is Open Sans, you are essentially setting every font besides the ones that are explicitly set to Open Sans. – tinfoilboy Mar 01 '14 at 08:41
  • I want to force it since I use different CSS snipets and they may have different font. Forcing solves my problem. I am lazy about it. How will I force it without having problems with glyphicon. – SNaRe Mar 01 '14 at 08:43
  • You would just do #wrap { font-family: 'Open Sans' sans-serif; } – tinfoilboy Mar 01 '14 at 08:45
  • But it won't override any other fonts that defined under wrap. Would putting '!important' solve my problem? – SNaRe Mar 01 '14 at 09:17
  • @SNaRe Those fonts are already defined in the respective CSS class, you could just do `#wrap * { font-family: 'Open Sans', sans-serif; }` then do `#wrap glyphicon { font-family: 'Glyphicons Halflings'; }`. – tinfoilboy Mar 01 '14 at 09:23
2

You need to remove this style:

html * {
    font-family: 'Open Sans', sans-serif !important;
}

from custom.css which is located at:

http://serhat.gen.tr/wp-content/themes/wp-bootstrap-master/css/custom.css
Felix
  • 37,892
  • 8
  • 43
  • 55
  • What can I do about it? – SNaRe Mar 01 '14 at 08:34
  • Go to that file location and search for the style above, then remove it or just keep `html` instead of `html *` – Felix Mar 01 '14 at 08:34
  • I want to force it since I use different CSS snipets and they may have different font. Forcing solves my problem. I am lazy about it. How will I force it without having problems with glyphicon. – – SNaRe Mar 01 '14 at 08:44