child theme not uploading media library
-
I am trying to upload images in child theme but its not working at all.I tried this code.I dont have only two kali forms and classic editor plugins
function child_theme_enqueue_styles() { $parent_style = 'medzone-lite-style'; // Set variable with Storefront parent theme text-domain // Enqueue parent theme styles wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' ); // Enqueue parent theme styles so they can be overridden wp_enqueue_style( $parent_style, get_template_directory_uri() . '/assets/css/main.css' ); //wp_enqueue_script('child-js', get_stylesheet_directory_uri() . '/js/script.js', array( 'jquery' ), '1.0', true ); // Load child-theme styles after parent theme styles // so we can override them wp_enqueue_style( 'child-style', get_stylesheet_directory_uri() . '/assets/css/main.css', array( $parent_style ), wp_get_theme()->get('Version') //This forces the browser to load a fresh copy of the stylesheet every time ); // Load child theme stylesheet last so it overrides all other enqueued styles wp_enqueue_style( 'child-style', get_stylesheet_directory_uri() . '/style.css', array( $parent_style ), wp_get_theme()->get('Version') ); } AND TRIED THIS add_action( 'wp_enqueue_scripts', 'akruti_enqueue_styles' ); function akruti_enqueue_styles() { wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' ); }
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘child theme not uploading media library’ is closed to new replies.