Documentation

Print This page

How To Change Buttons Style On Different Positions. (Hook)

If you are interested to change the styles of the button for different positions you can do this by applying this simple filter. For example, you want to change the style of sidebar buttons other than inline position,

add_filter( 'ssb_position_style', 'sidebar_different_style', 80, 3 );

function sidebar_different_style( $classes, $theme, $extra_data ) {

if ( $extra_data['position'] == 'sidebar' ) {
$classes = str_replace( 'simplesocial-' . $theme, 'simplesocial-round-btm-border', $classes );
}

return $classes;
}