Your Time:
Our Time:
← Back to discussions

Font Awesome XLarge Icons Not Working

Need help with a different issue? Search the forums or open a new ticket.
Open a support ticket

This topic has 9 replies, 3 voices, and was last updated 12 years, 10 months ago by Fem.

  • 2013-10-23 at 3:31 pm
    Support Expired
    #365
    Mobex
    Participant
    • Topics: 14
    • Replies: 24
    • Total posts: 38
    • Post count: 32

    I’m using the Font Awesome Icon code:

    [icons style="normal" size="xlarge" color="#0e0045" icon="icon-list-alt" animation="bounceIn" align="center"]

    And it’s not working, the icon appear really small and left aligned. I also tried to change xlarge to x-large & X-large and it still does not function. Can you please assist?

    The code is on: http://mobex.biz/demo/ below the tabs.

    2013-10-24 at 8:29 pm
    #394
    Fem
    Keymaster
    • Topics: 2
    • Replies: 5215
    • Total posts: 5217
    • Post count: 6003

    What would like to change the size of icon or circle?

    2013-10-24 at 9:23 pm
    Support Expired
    #403
    Mobex
    Participant
    • Topics: 14
    • Replies: 24
    • Total posts: 38
    • Post count: 32

    I’m using just the icon. So I want to use xlarge size with no circle or square.

    2013-10-25 at 12:53 am
    #409
    Fem
    Keymaster
    • Topics: 2
    • Replies: 5215
    • Total posts: 5217
    • Post count: 6003

    I have check with your issue i will get fix ASAP.

    2013-10-25 at 5:55 pm
    #420
    Wajid Khan
    Keymaster
    • Topics: 5
    • Replies: 1543
    • Total posts: 1548
    • Post count: 1876

    Here is the fix for font awesome icon.

    In hostmev2/css/shortcodes.css
    Find line No. 969 to 979:

    .facnyicon_circle i,
    .facnyicon_square i { vertical-align: middle;}
    
    .facnyicon_circle.small i,
    .facnyicon_square.small i { font-size: 13px !important;}
    
    .facnyicon_circle.medium i,
    .facnyicon_square.medium  i { font-size: 18px !important;}
    
    .facnyicon_circle.large i,
    .facnyicon_square.large i { font-size: 28px !important;}
    
    .facnyicon_circle.xlarge i,
    .facnyicon_square.xlarge i { font-size: 40px !important;}

    Replace with this:

    .small i,
    .facnyicon_circle.small i,
    .facnyicon_square.small i { font-size: 13px !important;}
    
    .medium i,
    .facnyicon_circle.medium i,
    .facnyicon_square.medium  i { font-size: 18px !important;}
    
    .large i,
    .facnyicon_circle.large i,
    .facnyicon_square.large i { font-size: 28px !important;}
    
    .xlarge i,
    .facnyicon_circle.xlarge i,
    .facnyicon_square.xlarge i { font-size: 40px !important;}

    And then some change in general.php

    In hostmev2/framework/shortcode/general.php line no.339

    Find:
    $out = '<i style="'.$color.'" class="'.$icon.'"></i>';

    Replace With:
    $out =' <div class="'.$size.'"><i style="'.$color.'" class="'.$icon.'"></i></div>';

    Best Regards,
    MAWK

    • This reply was modified 12 years, 10 months ago by Wajid Khan.
    2013-10-25 at 6:56 pm
    Support Expired
    #424
    Mobex
    Participant
    • Topics: 14
    • Replies: 24
    • Total posts: 38
    • Post count: 32

    Awesome thank you. That worked, but now the icons in my circles appear to be a little off center. I’ve attached an image to show what I mean. Is there a way to fix that?

    2013-10-25 at 7:26 pm
    #426
    Wajid Khan
    Keymaster
    • Topics: 5
    • Replies: 1543
    • Total posts: 1548
    • Post count: 1876

    Its seem everything working fine on my end can you point me the URL please.

    2013-10-25 at 9:01 pm
    Support Expired
    #427
    Mobex
    Participant
    • Topics: 14
    • Replies: 24
    • Total posts: 38
    • Post count: 32

    Bottom half of http://mobex.biz/demo/

    2013-10-25 at 10:48 pm
    Support Expired
    #431
    Mobex
    Participant
    • Topics: 14
    • Replies: 24
    • Total posts: 38
    • Post count: 32

    I now have a problem where in my top bar the Icon is broken from the text. I’m not sure if the few modifications we made for both the Top Bar BG color and the Icons has messed that up. You can see it at the top bar on http://mobex.biz/demo/

    2013-10-27 at 2:18 pm
    #451
    Fem
    Keymaster
    • Topics: 2
    • Replies: 5215
    • Total posts: 5217
    • Post count: 6003

    same as in general.php you replaced the file which was

    $out =' 
    ';

    Replace with this below

    $out =' ';
    

    And in shortcode.css file
    find the below class and replace only line-height:60px to 67px

    .facnyicon_square.large,
    .facnyicon_circle.large {
      height: 60px;
      width: 60px;
      line-height: 60px;
    }
    

You must be logged in to reply to this topic.