Created
August 18, 2015 18:56
-
-
Save nickcernis/bfe2afe1e2b182800a09 to your computer and use it in GitHub Desktop.
Force the Page Builder plugin to include the correct class for Simple Social Icons to be rendered more accurately
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Force the Page Builder plugin to include 'simple-social-icons' in its widget wrapper class | |
add_filter( 'siteorigin_panels_widget_classes', 'ssi_add_widget_class' ); | |
function ssi_add_widget_class( $classes ) { | |
if ( in_array( 'widget_simple-social-icons', $classes ) ) { | |
$classes[] = 'simple-social-icons'; | |
} | |
return $classes; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment