Skip to content

Instantly share code, notes, and snippets.

@BFTrick
Last active April 22, 2019 09:52
Show Gist options
  • Save BFTrick/5222981 to your computer and use it in GitHub Desktop.
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.
<?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