WordPress.org

Support

Support » How-To and Troubleshooting » Created Child Theme, Blog Now Has Problems

Created Child Theme, Blog Now Has Problems

  • TaylorReints
    Member

    @taylorreints

    When I was trying to create a child theme for my blog, and din’t like my results, I deleted it. Now when I delete it, I got to my site and see this:

    Warning: require_once(/home/a9603376/public_html/wp-content/themes/city-desk-child/inc/admin/options-framework.php) [function.require-once]: failed to open stream: No such file or directory in /home/a9603376/public_html/wp-content/themes/city-desk/functions.php on line 30
    
    Fatal error: require_once() [function.require]: Failed opening required '/home/a9603376/public_html/wp-content/themes/city-desk-child/inc/admin/options-framework.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/a9603376/public_html/wp-content/themes/city-desk/functions.php on line 30

    I don’t know what happened.

    If it helps, here is my functions.php:

    <?php
    
    if ( !function_exists( 'optionsframework_init' ) ) {
    
    	/*-----------------------------------------------------------------------------------*/
    	/* Options Framework Theme
    	/*-----------------------------------------------------------------------------------*/
    
    	/* Set the file path based on whether the Options Framework Theme is a parent theme or child theme */
    
    		// DIRECTORIES
    		if ( STYLESHEETPATH == TEMPLATEPATH ) {
    			define('OPTIONS_FRAMEWORK_URL', TEMPLATEPATH . '/inc/admin/');
    			define('OPTIONS_FRAMEWORK_DIRECTORY', get_bloginfo('template_directory') . '/inc/admin/');
    			define('OF_FILEPATH', TEMPLATEPATH);
    			define('OF_DIRECTORY', get_bloginfo('template_directory'));
    		} else {
    			define('OPTIONS_FRAMEWORK_URL', STYLESHEETPATH . '/inc/admin/');
    			define('OPTIONS_FRAMEWORK_DIRECTORY', get_bloginfo('stylesheet_directory') . '/inc/admin/');
    			define('OF_FILEPATH', STYLESHEETPATH);
    			define('OF_DIRECTORY', get_bloginfo('stylesheet_directory'));
    		}
    
    		define('GABFIRE_INC_PATH', OF_FILEPATH . '/inc');
    		define('GABFIRE_INC_DIR', OF_DIRECTORY . '/inc');
    		define('GABFIRE_FUNCTIONS_PATH', OF_FILEPATH . '/inc/functions');
    		define('GABFIRE_JS_DIR', OF_DIRECTORY . '/inc/js');
    
    		// OPTION PANEL
    		require_once (OPTIONS_FRAMEWORK_URL . 'options-framework.php');
    		require_once (GABFIRE_INC_PATH . '/theme-init.php'); // Custom functions and plugins
    }
    // remove parentheses from category list and add span class to post count
    function categories_postcount_filter ($brackets) {
    $brackets = str_replace('(', '<span class="post-count"> ', $brackets);
    $brackets = str_replace(')', ' </span>', $brackets);
       return $brackets;
    }
    add_filter('wp_list_categories','categories_postcount_filter');
    
    function custom_menu()
    {
    if( is_user_logged_in() )
    {
    $custom_menu = 'LoginMenu';
    }
    else
    {
    $custom_menu = 'VisitorMenu';
    }
    wp_nav_menu( array( 'menu' => $custom_menu, 'theme_location' => 'secondary' ) );
    }
    add_action('wp_footer', 'custom_menu');
Viewing 15 replies - 1 through 15 (of 18 total)
Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘Created Child Theme, Blog Now Has Problems’ is closed to new replies.