WordPress.org

Forums

Features by WooThemes
add extra field to Feature Details (2 posts)

  1. davel
    Member
    Posted 1 year ago #

    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()
    }

    http://wordpress.org/plugins/features-by-woothemes/

  2. saxisme
    Member
    Posted 1 year ago #

    Hi Davel,

    did you manage to solve it?
    Thanks

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Features by WooThemes
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.