Last active
April 22, 2019 09:52
-
-
Save BFTrick/5222981 to your computer and use it in GitHub Desktop.
A bit of PHP you can put in your functions.php to modify the default Features by WooThemes template.
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 | |
/** | |
* Modify the default Features by WooThemes template | |
*/ | |
function my_features_item_template( $tpl, $args ) { | |
$tpl = str_replace( '%%IMAGE%%', '<div class="feature-icon"> | |
%%IMAGE%% | |
<div class="animation animation-1"></div> | |
<div class="animation animation-2"></div> | |
</div>', $tpl ); | |
return $tpl; | |
} | |
add_filter( 'woothemes_features_item_template', 'my_features_item_template', 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment