Reply To: puresimple_*() functions not working

Home Forums WordPress Themes – Premium Pure & Simple puresimple_*() functions not working Reply To: puresimple_*() functions not working

#21243
Tom Fikes
Member

the functions.php and style.css were significantly modified when I inherited the project, and I have continued to develop those. Since the content-single.php file is identical to the parent, I imagine that it would work just fine… the problem is that the functions it calls (e.g., puresimple_posted_on) are not executing, even though the template-tags.php file where they are defined is present. Might there be something in the functions.php that is preventing those puresimple_* functions from working?

I’m pasting the functions.php code from my child theme here in case that’s useful:

 __( 'Primary Menu', 'pure-and-simple' ),
                              'header' => __( 'Header Menu', 'pure-and-simple' ),	 /* -TGF */
                              'footer' => __( 'Footer Menu', 'pure-and-simple' ),
                              ) );
    
    /*
     * Switch default core markup for search form, comment form, and comments
     * to output valid HTML5.
     */
    add_theme_support( 'html5', array(
                                      'search-form', 'comment-form', 'comment-list', 'gallery', 'caption'
                                      ) );
    
    /*
     * Enable support for Post Formats.
     * See http://codex.wordpress.org/Post_Formats
     */
    add_theme_support( 'post-formats', array(
                                             'aside', 'image', 'video', 'quote', 'link', 'gallery', 'status', 'audio'
                                             ) );
    
    // Setup the WordPress core custom background feature.
    add_theme_support( 'custom-background', apply_filters( 'puresimple_custom_background_args', array(
        'default-color' => '3d4147',
        'default-image' => get_template_directory_uri() . '/images/page-bg.jpg',
    ) ) );
}
endif; // puresimple_setup
add_action( 'after_setup_theme', 'puresimple_setup' );

/** tgf added from brandspeak's functions.php
 * Enqueue scripts and styles.
 */
function puresimple_scripts() {
    
    wp_enqueue_style( 'puresimple-responsive', get_template_directory_uri() . '/css/responsive.min.css', array( ), '3.1.1' );
    wp_enqueue_style( 'puresimple-fontawesome', get_template_directory_uri() . '/css/font-awesome.min.css', array(), '4.2.0' );
    wp_enqueue_style( 'puresimple-opensans', get_template_directory_uri() . '/css/font-opensans.css', array(), '1.0.2' );
    wp_enqueue_style( 'puresimple-style', get_stylesheet_uri() );
    
    wp_enqueue_script( 'puresimple-global', get_template_directory_uri() . '/js/global.min.js', array( 'jquery' ), '20141001', true );
    
    if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
        wp_enqueue_script( 'comment-reply' );
    }
}
add_action( 'wp_enqueue_scripts', 'puresimple_scripts' );
    
/** These requries are from the BrandSpeak functions.php, and add menu options in the Appearance>Customize admin menu -TGF 
**/
/**
 * Implement the Custom Header feature.
 */
require get_template_directory() . '/inc/custom-header.php';

 /**
 * Customizer additions.
 */
require get_template_directory() . '/inc/customizer.php';

/**
 * Load widgets.
 */
require get_template_directory() . '/inc/widgets.php';

/**
 * Get inline CSS.
 * If you need to edit this file, open the unminified version of the inline-css.php file.
 */
require get_template_directory() . '/inc/inline-css.min.php';

/**
 * Load Jetpack compatibility file.
 */
require get_template_directory() . '/inc/jetpack.php';