Viewing 9 posts - 1 through 9 (of 9 total)
  • Posted in: Dante
  • #127574
    Ivo
    Member
    Post count: 97

    Hi, good morning.

    I need to use the pay pal icon and I see it’s not available.

    Is it possible to update the icons… Font Awesome?

    Thanks

    #127578
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Hi,
    Please add this custom php code at functions.php of your 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

    #127584
    Ivo
    Member
    Post count: 97

    Hi.

    One last question. Every time I update the theme I have to add the custom PHP to the functions file?

    Cheers

    #127586
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    If you insert this code at functions.php of child theme then you dont worry about theme update and lost the changes.

    Thanks
    Mohammad

    #127593
    Ivo
    Member
    Post count: 97

    Yes, good point 🙂

    It gives a syntax error:

    Attachments:
    You must be logged in to view attached files.
    #127596
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    I see that single quote (‘) has been changed to ' so it gives error.
    Thanks

    #127615
    Ivo
    Member
    Post count: 97

    Hi

    Single quotes are ok now but:

    Parse error: syntax error, unexpected T_STRING in /usr/home/youngandbeautifood.com/web/wp-content/themes/dante-child/functions.php on line 27

    Attachments:
    You must be logged in to view attached files.
    #127617
    Ivo
    Member
    Post count: 97

    Done. Missing a “;”

    Thanks

    #127618
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    I am glad that you managed to resolve the issue.
    Thanks
    Mohammad

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

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

License required for one of the following items
Login and Registration Log in · Register