Skip to content

Instantly share code, notes, and snippets.

@nickcernis
Created August 18, 2015 18:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nickcernis/bfe2afe1e2b182800a09 to your computer and use it in GitHub Desktop.
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
<?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