Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1020360
    #1020937

    Hey Robert,
    To change the color of the menu I recommend using your IF statement to assign the css for the menu colors with !important; I also recommend removing any menu colors from your style.css or Quick CSS field and using those colors in your ELSE statement.
    Here is an example of adding your menu css in the head conditionally:

    add_action('wp_head', 'change_menu_color');
    
    function change_menu_color() {
        if (is_page(array(17, 19, 1, 11))) { ?>
            <style>
                /* your css here */
             </style> <?php
        }
    }
    

    just do this for each of your colors.

    Best regards,
    Mike

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.