Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: fontawesome?  (Read 6042 times)

0 Members and 1 Guest are viewing this topic.

fran86

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 61
fontawesome?
« on: July 07, 2015, 03:16:46 pm »

Does coppermine support fontawesome? http://fortawesome.github.io/Font-Awesome/

The icons show up italic and crates a paragraph after.

Is there a way to make it work? I did a search and came up with 0 results.

Thank you (:
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: fontawesome?
« Reply #1 on: July 07, 2015, 04:58:23 pm »

What exactly do you mean with "support"? I just had a short look at Font Awesome, but still doesn't get what exactly it is. However, according to the docs, you could simply add it to Coppermine via the template.html file of your theme.
Logged

fran86

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 61
Re: Re: fontawesome?
« Reply #2 on: July 07, 2015, 05:01:37 pm »

What exactly do you mean with "support"? I just had a short look at Font Awesome, but still doesn't get what exactly it is. However, according to the docs, you could simply add it to Coppermine via the template.html file of your theme.

I just mean, should it work. It's a icon type font. I have added all the correct things and the codes to template for the icons but they show up italic. I have it for wordpress and it's fine there. I just wondered if it there's something different I need to do for it to show properly on coppermine... I guess it hasn't been brought up before.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: fontawesome?
« Reply #3 on: July 07, 2015, 05:02:50 pm »

Please post a link to your gallery, so I can see the issue in your gallery. Additionally, please also attach a screenshot to your reply.
Logged

fran86

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 61
Re: fontawesome?
« Reply #4 on: July 07, 2015, 05:07:43 pm »

The link is a test theme that I haven't made public... http://ellenpagedaily.com/photos/index.php?theme=2015-002
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: fontawesome?
« Reply #5 on: July 07, 2015, 05:13:36 pm »

This is the corresponding code for your screenshot:
Code: [Select]
<div class="title2"><i class="fa fa-users"></i> Follow Us</div>
The icon is probably italic, as you added the Font Awesome CSS to an "i" tag. If I change it to e.g. "span", the icon isn't italic anymore.
Logged

fran86

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 61
Re: fontawesome?
« Reply #6 on: July 07, 2015, 05:16:29 pm »

Oh wow, that's all it was! The code on the site always includes the <i>. Thank you Αndré (:
Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 20 queries.