Home Forums Theme support Astra Theme – Menu Issue

This topic contains 5 replies, has 2 voices, and was last updated by  7Theme Support 7 years, 2 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • I have installed the theme and imported the demo content. I then went and created a child theme for this. When I activate the child them my menu font changes from rgb(58, 58, 58) to #eee.

    header .main-menu a {
    color: #eee;
    display: block;
    text-decoration: none;
    }

    when I try to change it in theme options/Extra CSS Content it wont change, any ideas?

    Here is a link of where the preview is that I am working on http://ccysa.websitedesignpreview.net/

    Hi,

    please check your source code, the css files are not sorted correct, you call the style.css file of the child theme before you load the parent theme stylesheet, that’s why it’s not working.

    Thank you. How do I correct that?

    The code above is not saved in the child theme, I don’t even know where it is coming from.

    It’s the first time you create a child-theme? Because it’s always the same problem with child-themes, WordPress call always the main style.css file after the style.css file of the child-theme, this will overwrite always the styles from the child-theme. Just check Google how many people have problems with that. You should use child-themes only if you know what you do or if you know how to code css, also to overwrite existing css rules.

    The code above is not saved in the child theme, I don’t even know where it is coming from.

    Where have you found the code?

    No it is not the first time I have worked with a Child Theme. I do understand CSS but am not an expert. I did finally figure it out though.

    When I would inspect the element I would see

    header .main-menu a {
    color: #eee;
    display: block;
    text-decoration: none;
    }

    which was overwriting the original settings but only when I would activate the child theme. When I would activate your theme it would go away. When I looked in the css file in editor or in theme options it was not written anywhere which is why I said I don’t where it is coming from.

    Anyways, like I said, I did find the issue and have it resolved now. Thank you!

    You’re welcome!

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.