• Resolved EddieVd

    (@eddievd)


    They are not being sourced (the x’s and arrows) when using a child theme.

    Is there a fix for this?

    Thanks,

    Eddie

Viewing 5 replies - 1 through 5 (of 5 total)
  • When you enqueue your styles, you should enqueue the glyph-icon library as well. This is the exact code I would use in my child theme:

    // Enqueue Stylesheets
    add_action( 'wp_enqueue_scripts', 'enqueue_child_theme_styles', PHP_INT_MAX );
    function enqueue_child_theme_styles(){
    	wp_enqueue_style( 'fukasawa_parent_genericons', get_template_directory_uri() . '/genericons/genericons.css' );
    	wp_enqueue_style( 'fukasawa_parent_style', get_template_directory_uri() . '/style.css', array( 'fukasawa_parent_genericons' ) );
    	wp_enqueue_style( 'fukasawa_child_style', get_stylesheet_uri(), array( 'fukasawa_parent_style' )  );
    }

    That said, you do not have to include the @import in your stylesheet.

    Do you put this code in functions.php after the code that wordpress advices ?
    I am sorry to be ignorant but these are my first steps with child themes.

    fran99, I tried the above suggestion, and it works. What you have to do is go to your child theme folder, create functions.php file, then start with an opening php tag <?php and copy/paste the above code next and then finish it with a closing php tag ?>

    That is it. Dont edit the parent or original functions.php of your theme, otherwise you’ll bust your theme. Always edit your child theme.

    So in other words, copy and paste this in to a functions.php in your child theme folder:

    <?php

    // Enqueue Stylesheets
    add_action( ‘wp_enqueue_scripts’, ‘enqueue_child_theme_styles’, PHP_INT_MAX );
    function enqueue_child_theme_styles(){
    wp_enqueue_style( ‘fukasawa_parent_genericons’, get_template_directory_uri() . ‘/genericons/genericons.css’ );
    wp_enqueue_style( ‘fukasawa_parent_style’, get_template_directory_uri() . ‘/style.css’, array( ‘fukasawa_parent_genericons’ ) );
    wp_enqueue_style( ‘fukasawa_child_style’, get_stylesheet_uri(), array( ‘fukasawa_parent_style’ ) );
    }

    ?>

    and that is it. it should work.

    Thank you to Yusri Mathews for the suggestion. It solved the problem.

    kirstensivyer

    (@kirstensivyer)

    I am having the same trouble with the menu navigation ‘x’ not showing. I am getting a faint blue box instead. As suggested above, I created the php file in my child theme folder and pasted the code as suggested – but no joy.

    my site – https://kirstensivyer.com

    Also, checking my site speed using Pingdom the ‘https://kirstensivyer.com/wp-content/themes/fukasawa-child/genericons/genericons.css?4d7f0b&#8217; is getting a connection error which I need to fix somehow?

    Can anyone suggest a fix for these? Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Menu Icons Lost in Child Theme’ is closed to new replies.