Created
September 27, 2018 14:09
-
-
Save temsool/4d764a03cb2408513e920599904db7d0 to your computer and use it in GitHub Desktop.
Replace LineAwesome with Fontawesome for specific widgets
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 | |
add_action('elementor/widget/render_content', function( $content, $widget ) { | |
$settings = $widget->get_settings(); | |
if (strpos($settings['_css_classes'],"lineawesome")!==false) { | |
$content= str_replace('fa', 'la', $content); | |
} | |
return $content; | |
}, 10, 2); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment