New Landing How can we help? Themeforest Theme Support Flexform Chart with font awesome

Viewing 11 posts - 1 through 11 (of 11 total)
  • Posted in: Flexform
  • #130772
    tsmith
    Member
    Post count: 22

    Hello,
    Can you explain me how can I change the font awesome icons in charts ?

    For example, change this :
    [chart percentage='100' size='170' barcolour='#1a3666' trackcolour='#fececa' content='icon-bar-chart' align='left']

    With the font awesome code :
    <i class="fa fa-at"></i>

    Thank for your help !

    #130782
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please change the code content=’icon-bar-chart’. You can insert your font icon like content=’fa fa-at’.

    Thanks
    Mohammad

    #130810
    tsmith
    Member
    Post count: 22

    Hi,
    Sorry but it doesn’t work, i tried with this :
    [chart percentage='100' size='170' barcolour='#1a3666' trackcolour='#fececa' content='fa-check-square' align='left']

    I get only the text fa-check-square.

    #130812
    tsmith
    Member
    Post count: 22
    This reply has been marked as private.
    #130819
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please paste this code at functions.php of child theme.

    function sf_enqueue_styles_new(){
    wp_deregister_style('fontawesome');
    wp_dequeue_style( 'fontawesome' )
    wp_register_style('fontawesomeNew', '//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css', array(), NULL, 'all');
    wp_enqueue_style('fontawesomeNew'); 
    }
    add_action('wp_enqueue_scripts', 'sf_enqueue_styles_new', 111); 

    Thanks
    Mohamamd

    #130826
    tsmith
    Member
    Post count: 22

    Thank you for your response.

    Sorry but I have a blank page if I put this code in function.php..
    Do you know from where is the problem ?

    Thanks again.

    #130833
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please remove that code and provide me wordpress admin login detail to inspect and resolve the issue.
    Thanks

    #131067
    tsmith
    Member
    Post count: 22
    This reply has been marked as private.
    #131189
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    I made all changes. Please change the code :-

    [chart percentage='100' size='170' barcolour='#1a3666' trackcolour='#fececa' content="fa-check-square' align='left']
    
    TO :-
    
    [chart percentage='100' size='170' barcolour='#1a3666' trackcolour='#fececa' content='icon-check-square' align='left']

    It should resolve the issue.

    Thanks
    Mohammad

    #131196
    tsmith
    Member
    Post count: 22

    Hi Mohammad,
    Thanks lot for your help 🙂

    Have a nice day,
    Olivier

    #131198
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Great, thanks Mohammad

    – Kyle

Viewing 11 posts - 1 through 11 (of 11 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register