Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • pavit Moderator
    #889919

    Hi

    Try to add this to your custom.css

    .navbar-default .navbar-nav,.navbar-default .navbar-nav > .active > a, .navbar-default .navbar-nav > .active.open > a, .navbar-default .navbar-nav > .active > a:hover, .navbar-default .navbar-nav {
        background-color:#1b95e2!important;
        color:#fff!important;
    }
    .navbar-default .navbar-nav > li > a {
        border-right:1px solid #fff!important;
        color:#fff!important;
    }

    You can change colors as you prefer

    hyuckjin21 Friend
    #889925

    I want to change the color of the only one menu like the attatched file.
    When I follow the instruction, all of the menu are changed.

    pavit Moderator
    #890093

    Add this code to your custom.css

    .navbar-default .navbar-nav > .custom {
        background:#1b95e2!important;
    }

    Then open your template manager -> Your default template-> Megamenu -> select item -> and in extra class add your custom css class


    1. Screenshot_23
    2. Screenshot_24-1
    hyuckjin21 Friend
    #890394

    I follow your direction, but still not working. I attatched the file for you to figure out the config


    1. 2016-02-25_11-36-45
    2. 2016-02-25_11-38-09
    pavit Moderator
    #890412

    Ok try with this

    remove the old code and add the code below into custom.css file

    .navbar-default .navbar-nav > .active > a, .navbar-default .navbar-nav > .active.open > a, .navbar-default .navbar-nav > .active > a:hover, .navbar-default .navbar-nav > .active.open > a:hover, .navbar-default .navbar-nav > .active > a:focus, .navbar-default .navbar-nav > .active.open > a:focus .custom {
    background:#1b95e2!important;
    }

    1. Screenshot_28
    hyuckjin21 Friend
    #890637

    Thank you for help. It works, But what I really want to do is that depending on class, I want to show the different color on each menu. I made two different class on the custom.css . one is .custom, and the other one is .custom-orange, as following the attached files
    After that, the only one menu is changed.

    Please help for this issue.


    1. 2016-02-25_19-45-50
    2. 2016-02-25_19-47-40
    3. 2016-02-25_19-48-01
    hyuckjin21 Friend
    #890926

    ps. I found another problem. the code you gave me is not what I really want to modify.
    when I click the menu, the color of all menu are changed following custom.css
    I want to show the menu like the attached picture.


    1. KakaoTalk_20160210_154609347
    pavit Moderator
    #890951

    Hi there

    What you want is still not clear to me – mainnav has many css code for main button, dropdown, active,hover, etc etc

    So would be nice if you could describe in details what you need and in which specific situation

    active page active menu color
    dropdown menus colors

    hyuckjin21 Friend
    #891597

    I just want to change Main Button like the picture as I attached. When the menu is selected, it should keep the same color.

    If you go to "piartcenter.com" currently, "PI 소개" is activated with orange color. When you click the "입학안내", the manu is activated with orange color, but I want to color yellow with the red active bar.

    When you click the " F-1학생" right now, the menu is activated with orange color like others, but I want to color blue with the red active bar.

    Simply say, just change 3 main menu color from black to orange, yellow and blue like the attached picture. So the menu is selected, just red bar is shown at upside like current status.


    1. 2016-02-27_20-40-19
    Pankaj Sharma Moderator
    #892166

    Hi
    I read your last post and i understand you want to apply 3 different color for 3 different menu items when they are active .
    For this you need to add extra class for these menu item via Mega menu .
    Example : http://prntscr.com/a9arqi

    Now define the class in custom.css file

    orange class is for orange and yellow is for yellow color menu item .

    
    .navbar-default .navbar-nav > .active.orange  > a { background:#f77227!important;}
    
    .navbar-default .navbar-nav > .active.yellow  > a { background:#FFFF00!important;}
    

    Hope it solve the issue .

    hyuckjin21 Friend
    #893131

    I solved the problem. I used the following
    code`.navbar-default .orange > a { background:#f77227!important;}

    .navbar-default .blue > a { background:#1c94e2!important;}

    .navbar-default .red > a { background:#e72d3b!important;}`

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

This topic contains 11 replies, has 3 voices, and was last updated by  hyuckjin21 8 years, 8 months ago.

The topic ‘Change background color using custom.css’ is closed to new replies.