• Resolved srazniew

    (@srazniew)


    Hi,
    I cannot change the background color of the menu on

    https://esslli2016.unibz.it/

    Weirdly, I can successfully change it on

    https://esslli-test.inf.unibz.it/

    In both cases I use the following CSS code:

    .navbar-default {
      background-color: #f8f8f8;
      border-color: #c7c7c7;
    }

    Even more weirdly, on the webpage where I cannot change the background color, the border color change works fine. What could be the reason for this erratic behaviour?

Viewing 3 replies - 1 through 3 (of 3 total)
  • If you look at the source view, on https://esslli2016.unibz.it/, we can see css that’s been generated or hardcoded into the <head> theme:

    .site-navigation .navbar {
      background: #31526b;
    }

    Perhaps there is still a setting in the theme options which is using #31526b? This setting is probably overriding any background style you add into the external stylesheets.

    Thread Starter srazniew

    (@srazniew)

    Thanks for your answer. I compared the settings of both sites carefully, but could not find any difference.

    Essentially, the “test” page is a clone of the other one, so settings should anyway be the same (though the slider was broken and the menu background was different in the clone immediately).

    Any ideas what could make this difference?

    Thread Starter srazniew

    (@srazniew)

    Problem resolved. In case anyone experiences the same problems, below is what was done:

    – I exported the Customizer Settings from test
    – reset the Customizer&Advanced Settings from 2016
    – set the Advanced Settings in 2016 again:
    .navbar-default {
    background-color: #f8f8f8;
    border-color: #c7c7c7;
    }
    – next I imported the Customizer Settings from test into 2016,
    changing the URL

    {
    “theme_mods”: {
    “color_scheme”: “dark”,
    “header_textcolor”: “blank”,
    “background_color”: “050505”,
    “tagline_text_color”: “cecece”,
    “title_font_color”: “015670”,
    “header_background_color”: “050505”,
    “top_nav_brand_text_color”: “003044”,
    “caption_title_bg_color”: “ffffff”,
    “caption_title_font_color”: “003044”,
    “footer_fullwidth_border_bottom_color”: “e5e5e5”,
    “nav_menu_locations”: {
    “top”: 0,
    “secondary”: 2
    },
    “top_nav_brand_image”: “”,
    “top_nav_brand”: 1,
    “header_image”:
    “http:\/\/esslli2016.unibz.it\/wp-content\/uploads\/2015\/11\/esslli-banner4.png”,
    “bottom_nav_brand_text_color”: “”,
    “bottom_nav_brand”: “”,
    “header_image_data”: {
    “attachment_id”: 602,
    “url”:
    “http:\/\/esslli2016.unibz.it\/wp-content\/uploads\/2015\/11\/esslli-banner4.png”,
    “thumbnail_url”:
    “http:\/\/esslli2016.unibz.it\/wp-content\/uploads\/2015\/11\/esslli-banner4.png”,
    “height”: 186,
    “width”: 1169
    },
    “display_header_static_frontpage”: 1,
    “display_header_home”: 1
    }
    }

    Now the Menu color is the same!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Can change menu background in one instance but not in other’ is closed to new replies.