Reorder icons in version 2.0

Nick Cernis edited this page Jan 5, 2017 · 2 revisions

To reorder icons, use the following snippet:

<?php
add_filter( 'simple_social_default_profiles', 'custom_reorder_simple_icons' );

function custom_reorder_simple_icons( $icons ) {

	// Set your new order here
	$new_icon_order = array(
		'behance'     => '',
		'bloglovin'   => '',
		'dribbble'    => '',
		'email'       => '',
		'facebook'    => '',
		'flickr'      => '',
		'github'      => '',
		'gplus'       => '',
		'instagram'   => '',
		'linkedin'    => '',
		'medium'      => '',
		'periscope'   => '',
		'phone'       => '',
		'pinterest'   => '',
		'rss'         => '',
		'snapchat'    => '',
		'stumbleupon' => '',
		'tumblr'      => '',
		'twitter'     => '',
		'vimeo'       => '',
		'xing'        => '',
		'youtube'     => '',
	);

	foreach( $new_icon_order as $icon => $icon_info ) {
		$new_icon_order[ $icon ] = $icons[ $icon ];
	}

	return $new_icon_order;
}
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.