Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Fixed Social Share Icons AddOn (Example)
<?php
/*
Plugin Name: Fixed Social Share Icons AddOn (Example)
Description: Adds more social icons to the Fixed WordPress Social Share Button
Version: 1.0
*/
/**
* Adds the icons in the style.css definition to the list of icons.
*
* @param array $icon_list
*
* @return array
*/
function fss_add_icons( $icon_list ) {
/**
* Define your added icons line by line.
* Don't forget that these icons
*/
$icons_to_add = array(
'fssaddon-icon-instagram',
'fssaddon-icon-delicious',
'fssaddon-icon-github-alt'
);
return array_merge( $icon_list, $icons_to_add );
}
add_filter( 'wpbfsb_icons', 'fss_add_icons' );
/**
* Adds the new style.css to the list of icon files.
*
* @param array $files
*
* @return array
*/
function fss_icon_files( $files ) {
$files['fss-add-icons'] = plugins_url( 'style.css', __FILE__ );
return $files;
}
add_filter( 'wpbfsb_icon_files', 'fss_icon_files' );
|��LP��5fssaddonRegularVersion 1.0fssaddon �0OS/2#[�`cmap��s\gaspxglyf�O���Hhead��~�6hhea��$hmtx�$loca��@maxp �P name�e
�pBpost� �LfGLf��@�������  H ��m����� ��m���������a��797979��2Xq�747&54726326763#"'&'&'&'&'&'&5;27676767654'&#"#"'&#"34767632#"'&'&534767632#"'&'&5'*.+%&  @ 0 " ,, ".    �  �D-! 
 !.D;#  #;2

""
��0AV7476%%'&57%76='''&547767654'&&77676=4'&'&G��12& %9(((S%$$%� 1  1 8F�� �%(&8��""%%h 0 .��%7476%%'&5?776='5'"""��"ɊʉR#!��!#��������_<� ��V���V��������
�f���N&\6
(l  N & \  >
(lfssaddonVersion 1.0fssaddonfssaddonfssaddonRegularfssaddonGenerated by IcoMoon
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
<svg xmlns="http://www.w3.org/2000/svg">
<metadata>Generated by IcoMoon</metadata>
<defs>
<font id="fssaddon" horiz-adv-x="512">
<font-face units-per-em="512" ascent="480" descent="-32" />
<missing-glyph horiz-adv-x="512" />
<glyph unicode="&#x20;" d="" horiz-adv-x="256" />
<glyph unicode="&#xf113;" d="M0 178.286q0 67.714 38.857 113.143-7.715 23.429-7.715 48.572 0 33.143 14.572 62.285 30.857 0 54.285-11.285t54-35.286q42 10 88.286 10 42.286 0 80-9.143 30 23.428 53.428 34.571t54 11.143q14.572-29.143 14.572-62.286 0-24.857-7.714-48 38.857-45.714 38.857-113.714 0-59.143-17.428-94.572-10.857-22-30.143-38t-40.286-24.572-48.572-13.572-49-6.286-47.714-1.286q-22.286 0-40.572 0.857t-42.143 3.572-43.572 8.572-39.143 14.714-34.572 23.143-24.572 32.857q-17.715 35.143-17.715 94.572zM64 128q0-25.143 9.143-43.857t23.143-29.428 34.857-17.143 40-8.428 42.571-2h48q23.428 0 42.572 2t40 8.428 34.857 17.143 23.143 29.428 9.143 43.857q0 34.286-19.714 58.286t-53.428 24q-11.714 0-55.714-6-20.286-3.143-44.857-3.143t-44.857 3.143q-43.428 6-55.714 6-33.715 0-53.428-24t-19.715-58.286zM109.715 128q0 11.428 3.572 23.428t12.285 21.714 20.715 9.714 20.714-9.714 12.286-21.714 3.571-23.428-3.571-23.428-12.286-21.714-20.714-9.714-20.715 9.714-12.285 21.714-3.572 23.428zM292.572 128q0 11.428 3.572 23.428t12.286 21.714 20.714 9.714 20.714-9.714 12.286-21.714 3.572-23.428-3.572-23.428-12.286-21.714-20.714-9.714-20.714 9.714-12.286 21.714-3.572 23.428z" horiz-adv-x="476" />
<glyph unicode="&#xf16d;" d="M0 56.286v326.286q0 23.143 16.572 39.714t39.715 16.572h326.286q23.143 0 39.714-16.572t16.572-39.714v-326.286q0-23.143-16.572-39.714t-39.714-16.572h-326.286q-23.143 0-39.715 16.572t-16.572 39.714zM48.857 68q0-7.428 5-12.428t12.428-5h305.428q7.143 0 12.286 5t5.143 12.428v185.143h-38.572q5.714-18 5.714-37.428 0-36-18.286-66.428t-49.714-48.143-68.572-17.714q-56.286 0-96.285 38.714t-40 93.572q0 19.428 5.715 37.428h-40.285v-185.143zM131.714 220.286q0-35.428 25.857-60.428t62.143-25q36.572 0 62.428 25t25.857 60.428-25.857 60.428-62.428 25q-36.286 0-62.143-25t-25.857-60.428zM300 323.143q0-8.286 5.714-14t14-5.714h49.714q8.286 0 14 5.714t5.714 14v47.143q0 8-5.714 13.857t-14 5.857h-49.714q-8.286 0-14-5.857t-5.714-13.857v-47.143z" />
<glyph unicode="&#xf1a5;" d="M0 82.286v274.286q0 34 24.143 58.143t58.143 24.143h274.286q34 0 58.143-24.143t24.143-58.143v-274.286q0-34-24.143-58.143t-58.143-24.143h-274.286q-34 0-58.143 24.143t-24.143 58.143zM18.285 219.429h201.143v-201.143h137.143q26.572 0 45.286 18.714t18.714 45.286v137.143h-201.143v201.143h-137.143q-26.572 0-45.285-18.714t-18.715-45.286v-137.143z" />
</font></defs></svg>
 �0OS/2#[�`cmap��s\gaspxglyf�O���Hhead��~�6hhea��$hmtx�$loca��@maxp �P name�e
�pBpost� �LfGLf��@�������  H ��m����� ��m���������a��797979��2Xq�747&54726326763#"'&'&'&'&'&'&5;27676767654'&#"#"'&#"34767632#"'&'&534767632#"'&'&5'*.+%&  @ 0 " ,, ".    �  �D-! 
 !.D;#  #;2

""
��0AV7476%%'&57%76='''&547767654'&&77676=4'&'&G��12& %9(((S%$$%� 1  1 8F�� �%(&8��""%%h 0 .��%7476%%'&5?776='5'"""��"ɊʉR#!��!#��������_<� ��V���V��������
�f���N&\6
(l  N & \  >
(lfssaddonVersion 1.0fssaddonfssaddonfssaddonRegularfssaddonGenerated by IcoMoon
wOFFOTTO�
PCFF ���xx�OS/2�``#[cmapP\\��sgasp�head�66��~hhea�$$��hmtx�maxp,Pname4BB�e
�postx  fssaddon:���
S���
S��� �k��t�� � "'fssaddonfssaddonu0u1u20uF113uF16DuF1A5�
��W����g��F�����������������������������{�������������������������x�v�u�z�{�|�m�e�]�d�kt�|�~~�~�~�}�}�z�y�y�z�}�}�{�y�|�~���|�|�{�|�~�~�~�~�~����������������Y�z�}�~�����������������������������������������������������������~�~�y�t���y�n�}�|�{�z�|�~�n�x���u�y�~{~{�x�t���������������������������������������������������������������������������K�������������������������������������������������������������������������������������������ۋ���������~�|����|�~����~�|��ۋ|�~������������������������Ƌ��������������Me����~�s�uvwz{vvt�s�e�k�p�q�}���������c���M��,�t�w�z�z��������������������z�z�v�s�s�v�z{yz�w�s�<�����������������������������������������Z��������������\�������������������������{�{�w�u���u�w{{{{w�u��u�w�{�{��������]���]�����������������^���^��z�{�~�|�z�����
�LfGLf��@�������  H ��m����� ��m���������a��5��_<� ��V���V��������P�N&\6
(l  N & \  >
(lfssaddonVersion 1.0fssaddonfssaddonfssaddonRegularfssaddonGenerated by IcoMoon
@font-face {
font-family: 'fssaddon';
src:url('fssaddon.eot?-kw9tdo');
src:url('fssaddon.eot?#iefix-kw9tdo') format('embedded-opentype'),
url('fssaddon.woff?-kw9tdo') format('woff'),
url('fssaddon.ttf?-kw9tdo') format('truetype'),
url('fssaddon.svg?-kw9tdo#fssaddon') format('svg');
font-weight: normal;
font-style: normal;
}
[class^="fssaddon-icon-"], [class*=" fssaddon-icon-"] {
font-family: 'fssaddon';
speak: none;
font-style: normal;
font-weight: normal;
font-variant: normal;
text-transform: none;
line-height: 1;
/* Better Font Rendering =========== */
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.fssaddon-icon-github-alt:before {
content: "\f113";
}
.fssaddon-icon-instagram:before {
content: "\f16d";
}
.fssaddon-icon-delicious:before {
content: "\f1a5";
}
@code-flow

This comment has been minimized.

Copy link
Owner Author

@code-flow code-flow commented Jul 7, 2014

Save all files into a folder "fss-add-icons" and move it to your /wp-content/plugins/ folder. Activate the new plugin via your WordPress administration panel. The new icons should now appear in the list of icons.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment