Why still output /wp-content/themes/twentynineteen?
Question
I’ve developed some twentynineteen-child template. Today, I need to convert my last child-template into a template stand-alone.
I removed the following line from the style.css file:
Template: twentynineteen
And added a few lines to my functions.php file:
if ( ! function_exists( 'oripeau_setup' ) ) :
function oripeau_setup() {
load_theme_textdomain( 'oripeau', get_template_directory() . '/languages' );
add_theme_support( 'automatic-feed-links' );
add_theme_support( 'post-thumbnails' );
register_nav_menus( array(
'primary' => __( 'Primary Menu', 'oripeau' ),
'secondary' => __('Secondary Menu', 'oripeau' )
) );
add_theme_support( 'post-formats', array ( 'aside', 'gallery', 'quote', 'image', 'video' ) );
}
endif;
add_action( 'after_setup_theme', 'oripeau_setup' );
I renamed the template folder:
wp-content/themes/oripeau
But echo get_template_directory_uri() still output
/wp-content/themes/twentynineteen
Question: what am I forgetting?
0
child-theme, templates, theme-development, themes
4 years
2020-03-07T19:56:23-05:00
2020-03-07T19:56:23-05:00 0 Answers
90 views
0
Leave an answer