• I have created many child themes but I don’t seem to manage to make a proper child theme with Futurio.

    Problem 1)
    What doesn’t work is foremost the fonts. They don’t look the same.

    Problem 2)
    Then the menu is slightly different and also under the logo and menu the content is pushed down about 10px.

    I’m having this code in functions.php:

    function my_theme_enqueue_styles() {
    
        $parent_style = 'futurio-style';   
     
        wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css');
        
        wp_enqueue_style( 'child-style',
            get_stylesheet_directory_uri() . '/style.css',
            array( $parent_style ),
            wp_get_theme()->get('Version')
        );
    }
    add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );
    

    Is there anything more that needs to be added to this code?

    • This topic was modified 5 years, 3 months ago by nd00jan.
    • This topic was modified 5 years, 3 months ago by nd00jan.
    • This topic was modified 5 years, 3 months ago by nd00jan.
    • This topic was modified 5 years, 3 months ago by nd00jan.
    • This topic was modified 5 years, 3 months ago by nd00jan.
Viewing 1 replies (of 1 total)
  • Thread Starter nd00jan

    (@nd00jan)

    OK, at least I found a solution to the second problem. To the code I added this part:

    $deps = array('bootstrap', 'font-awesome', 'futurio-stylesheet'); //dependencies
    wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css', $deps);
    

    Still, the fonts doesn’t look the same as the parent theme.
    So how could we solve that part?

    • This reply was modified 5 years, 3 months ago by nd00jan.
    • This reply was modified 5 years, 3 months ago by nd00jan.
    • This reply was modified 5 years, 3 months ago by nd00jan.
    • This reply was modified 5 years, 3 months ago by nd00jan.
Viewing 1 replies (of 1 total)
  • The topic ‘Problem with Child Theme fonts’ is closed to new replies.