WordPress.org

Ready to get started?Download WordPress

Forums

Simpleo
Child Theme Supported for Simpleo Theme? (2 posts)

  1. mortician8018
    Member
    Posted 8 months ago #

    Does Simpleo V 1.0.4 support Child Themes? I have tried creating a Child Theme several times with no luck. I have made Child Themes before so I am not inclined to think I am making NOOB mistakes.

    Whenever I make active the Child Theme, the "look and feel" of the site itself is skewed. It looks nothing like the Parent Themes does when active. Same colors and fonts but the formatting...etc is gone.

    Please advise.

  2. Jesin A
    Member
    Posted 8 months ago #

    I think you have to copy both the "css" and "js" directories from the the parent to the child theme's directories.

    Looking at the simpleo-functions.php file I find that this theme adds stylesheets and scripts by specifying the path using the get_stylesheet_directory_uri() function like this.

    wp_enqueue_style ('basic', get_stylesheet_directory_uri() . '/css/basic.css');

    So this will create a URL like

    example.com/wp-content/simpleo-child/css/basic.css

    If you don't wish to copy those directories you have to remove that entire function in the child theme's functions.php like this

    remove_action('wp_enqueue_scripts','simpleo_add_script_function');

    This should run during the "after_theme_setup" action.

    Create a new function to enqueue the files using the get_template_directory_uri() function.

Reply

You must log in to post.

About this Theme

About this Topic