• Hey, i installed this plugin for the wootheme ‘For the Cause’.
    I need an extra testfield in the feature plugin for naming a class; it’s to indicating a fontawesome icon.

    How can i do that in my funstions.php file ?
    Can it be done with a filter ?

    It’s this function in ‘For the Cause’, the i-tag with the class icon-‘here comes the class’.


    add_filter('woothemes_features_item_template', 'woo_custom_features_template');

    if ( ! function_exists( 'woo_custom_features_template' ) ) {
    function woo_custom_features_template( $tpl ) {
    $tpl = '<div class="%%CLASS%%">%%IMAGE%%<div class="feature-content"><h3 class="feature-title">
    <div class="post-type swatch-red">
    <i class="icon-%%ICON%%"></i>
    </div>%%TITLE%%</h3>%%CONTENT%%</div></div>';
    return $tpl;
    } // End woo_custom_features_template()
    }

    https://www.ads-software.com/plugins/features-by-woothemes/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘add extra field to Feature Details’ is closed to new replies.