• How it’s possible to load the theme with the new child-theme import method:

    add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
    function theme_enqueue_styles() {
        wp_enqueue_style( 'hitchcock', get_template_directory_uri() . '/style.css' );

    with this code, only my child style.css is load and the hitchcock style.css don’t load.

    with @import works fine, but is not so nice.
    @import url("../hitchcock/style.css");

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter foomep

    (@foomep)

    ok, it works. I named my functions.php only function.php…

    but a problem I have continued:
    the font awesome dont load because wordpress try load the font from the child theme folder (https://server.com/wp-content/themes/child-theme/fa/css/font-awesome.css?ver=4.5).

    Thread Starter foomep

    (@foomep)

    I have found the problem:
    in the functions.php from the parent-theme change Codeline 82 from
    wp_enqueue_style( 'hitchcock_fontawesome', get_stylesheet_directory_uri() . '/fa/css/font-awesome.css' );

    to

    wp_enqueue_style( 'hitchcock_fontawesome', get_template_directory_uri() . '/fa/css/font-awesome.css' );

    and with child-theme font awesome load correctly ??

    Thanks @foomep

    In this way the Social Icons works correctly with child theme..

    Did it works insert the function in the functions.php file of the child theme..?

    Thread Starter foomep

    (@foomep)

    Did it works insert the function in the functions.php file of the child theme..?

    I don’t no. I have not tested it.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Child Theme’ is closed to new replies.