Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1419058

    Like this answer…

    Sorry, but why to copy the complete function and kill the future of updates when an applay_filters() is there?

    add_filter( 'avf_default_icons', function ($icons) {
    	$icons['twitter'] = array( 'font' => 'entypo-fontello', 'icon' => 'ue8f1');
    	return $icons;
    });

    this would be the correct answer.

    But the thread is closed and I cant provide the correct answer.
    I can understand, that the mods dont have the time to answer and code for everyone, but please let the community help themself.

    #1419107

    Hey BlutVampir,

    Thank you for sharing the solution.

    Is ue8f1 the entypo-fontello code for the X icon? We’ll forward it to the previous thread.

    Best regards,
    Ismael

    #1419141

    no, thats the normal Twitter image, But anyone can upload the X icon as new font and then change it via the add_filter.
    like

    add_filter( 'avf_default_icons', function ($icons) {
    	$icons['twitter'] = array( 'font' => 'yourownfont', 'icon' => 'your-icon');
    	return $icons;
    });

    then its done.

    in the orther thread, there was the “copy the full function to the child” as solution, which is not a good option.

    #1419144

    Hey BlutVampir,

    Thanks for your help!

    Just to note, the Twitter icon will be replaced with the new X icon in Enfold 5.6.7.

    Regards,
    Yigit

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.