• Resolved tuncan

    (@tuncan)


    I want to create child theme. I create a folder, prepare “style.css” (proper (child) names). Then I create a “functions.php” file and add this inside:

    <?php
    add_action( 'wp_enqueue_scripts', 'enqueue_parent_styles' );
    function enqueue_parent_styles() {
        wp_enqueue_style( 'parent-style', get_template_directory_uri().'/style.css' );
    }
    ?>

    After I activate a child theme, the menus are not showing properly. What else should I do?

Viewing 4 replies - 1 through 4 (of 4 total)
  • WordPress considers the child theme to be a new theme, so you’ll likely have to reassign any navigation menus and sidebar widgets, just like you did when you set up the parent theme.

    Thread Starter tuncan

    (@tuncan)

    Thank you for quick answer. But, can you be more specific (to a noob)?
    Should I prepare a new menu in child theme?

    Did you already create a menu when you were using the parent theme? If so, it should still be present when you’re using the child theme. Check to see if the menu is listed in the dropdown box on the Menu screen (Dashboard > Appearance > Menus; the box is labeled “Select a menu to edit:”). You can then assign it to a location in the “Manage Locations” tab.

    Thread Starter tuncan

    (@tuncan)

    Thank you. The problem was, that menu wasn’t assigned in the “Manage Locations” tab (in child theme).

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