• I’m using the most recent version of Modality theme that is heavily modified. I never got around to making a child because I had mainly been working on the site offline using DesktopServer so I didn’t need the anything hosted till it is ready.

    Anyways, I had just recently updated Modality which screwed up my page a bunch. I ended up getting everything back to looking and working how I wanted, with many things actually improved. Mainly the issues were caused by the group that makes Modality changing the name of a bunch of IDs and classes.

    After going through that ordeal, I want to avoid it in the future, so I created a backup and want to work on everything within the child now. The theme got installed just fine, but the navbar looks completely messed up.

    Here is how it’s supposed to look:
    Proper menu

    Here’s how it actually looks:
    Messed up menu

    Any ideas? I followed the instructions perfectly.

Viewing 1 replies (of 1 total)
  • How did you enqueue the style.css in the child-theme?
    did you use @import url("../modality/style.css"); ?

    if yes, get rid of them and use this function into your child-theme functions.php

    function get_parent_theme_css() {
      wp_enqueue_style( 'modality-child', get_template_directory_uri() . '/style.css' );
    }
    add_action( 'wp_enqueue_scripts', 'get_parent_theme_css' );

    Hope it helps

Viewing 1 replies (of 1 total)
  • The topic ‘setting up child messes up menu’ is closed to new replies.