Support » Theme: Hueman » Font color of Header menu

  • Hi,

    after a longer search concerning my problem this night I got the idea that the hueman forum could help me πŸ™‚

    I have no idea how to change the font color of my header- menu from white (backround should by light grey and then white is to bright) to black. Maybe I do not see the forest for the trees respectively didnΒ΄t mention all possibilities in the design section of the template and do?

    Thankyou πŸ™‚

Viewing 12 replies - 1 through 12 (of 12 total)
  • Hi.
    You can’t define header font color in customiser. You have to define it in style.css in a child theme.

    Thank you for your quick answer. I thought so, too. Having a look into the style.css of my hueman child theme I see that it is empty. What do I have to add (I know the color is #000000)?

    You have to define the class .site-description
    Example :
    .site-description {
    color: #666;
    font-size: 24px;
    font-style: normal;
    font-weight: 600;
    padding: 5px 0;
    }

    Thank you very much again. I pasted the code into the style.css, but nothing changed:

    /*
    Theme
    Name: S Child Theme

    Description: S 2016 Projekt

    Author: S

    Template: hueman

    (optional values you can add: Theme URI, Author URI, Version, License, License URI, Tags, Text Domain)
    */

    .site-description {
    color: #666;
    font-size: 24px;
    font-style: normal;
    font-weight: 600;
    padding: 5px 0;
    }

    Thanks for the link. In the meantime (2h15ago) I tried do build that childtheme anew. Next problem: The hueman folder has a functions.php with very small content. So I donot know how to connect trhe new style.css with the functions.php, because I donot know, what the precise name of the “template-name” style is. Is there something generally missing in the functions.php of the parent theme?

    Here the content:

    <?php
    //do not remove this
    load_template( get_template_directory() . ‘/functions/init-core.php’ );

    /**
    * The best and safest way to extend the Humean WordPress theme with your own custom code is to create a child theme.
    * You can add temporary code snippets and hacks to the current functions.php file, but unlike with a child theme, they will be lost on upgrade.
    *
    * If you don’t know what a child theme is, you really want to spend 5 minutes learning how to use child themes in WordPress, you won’t regret it πŸ™‚ !
    * https://codex.wordpress.org/Child_Themes
    *
    */

    @tank170 – Welcome to the Hueman forum. The theme style.css file does not contain any code. The file is required by WP but it is not used by the theme; it is only for documentation. The theme functions.php file is used to load the required functions from another template file. If you’re trying to add only CSS you don’t need a child theme. You can use a plugin like https://wordpress.org/plugins/simple-css/ or https://wordpress.org/plugins/custom-css-js/. To change the header menu try this CSS:

    /* change nav header menu text to red */
    #nav-header .nav li a {
        color: #f00;
    }

    πŸ™‚ It Works!!! Brilliant πŸ™‚ Thank you very much. The only remaining white field is the “starting page”, a static one. That is still white. Is it possible to change also this color?

    Opps really sorry i have think site description instead of header-menu :/

    /* change active menu item to blue */
    #nav-header .nav li.current_page_item a {
        color: #00f;
    }

    can you tell me please how create different color text for each category header menu item?
    thanks

    @viento – This topic is over 6 months old and relates to a different subject. Per the Forum Guidelines please don’t jump into the middle of another support topic; start your own topic instead. Thanks.
    https://make.wordpress.org/support/handbook/forum-welcome/#post-in-the-best-place

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Font color of Header menu’ is closed to new replies.