Jump to content

Help changing navigation bar color on WHMCS Version: 7.2.1


Recommended Posts

Thank you but I added the code, but it didn't work. This is the path: templates/six/css/custom.css

the path is correct (if you're using Six as your template)..

 

the above hex is similar to the default colour, so try making it red and see if that works...

 

.navbar-main {background-color: #ff0000;}

if it doesn't work, then you can't be using Six as your template.

Link to comment
Share on other sites

when you go to the WHMCS homepage on your site and view the html source in the browser, do you see something like the line below...

 

<link href="/whmcs/templates/six/css/custom.css" rel="stylesheet">

if not, then i'm wondering if you're using a custom template and/or it's not called six... :?:

 

it might be helpful to see a link to your site because if you're using Six and you've modified custom.css, then the navbar color should change (unless you have a browser caching issue).

Link to comment
Share on other sites

the custom.css file linked to is blank...

/* ***************************************************** 
   ** Custom Stylesheet **

   Any custom styling you want to apply should be
   defined here.

***************************************************** */

so wherever you've been adding your CSS, it's not been in the correct place... /clientes/templates/six/css/custom.css

 

e.g., when you edit the correct file, and use #1E78FF, it should match your logo color...

 

8DB0o02.png

Link to comment
Share on other sites

/* *****************************************************

   ** Custom Stylesheet **

   Any custom styling you want to apply should be
   defined here.

***************************************************** */

.navbar-main {background-color: #1E78FF;}  
ul.top-nav > li.primary-action > a.btn {background-color: #1E78FF;}
.btn.btn-action {border-color: #1E78FF;}

 

QkwnnaO.png

Link to comment
Share on other sites

the easiest way to do things like this is to right-click on what you want to change and "Inspect Element" - and that should tell you the css item to change... e.g to remove the globe logo...

 

.domain-checker-bg {background-image: none;}

Link to comment
Share on other sites

  • 2 years later...
  • 5 months later...
  • 2 weeks later...
On 5/3/2020 at 2:44 AM, nathi said:

Hi how to change hover over color in whmcs

i've been beating my head against the wall trying to figure this out.  i've been trying all kind of different things from the tags in the html..can't get it.

Link to comment
Share on other sites

8 minutes ago, Greysoul said:

i've been beating my head against the wall trying to figure this out.  i've been trying all kind of different things from the tags in the html..can't get it.

the following would change the navbar red and change hover color to black....

.navbar-main {
    margin-bottom: 0;
    background-color: #ff0000;
    border: 0;
    min-height: 38px;
    font-family: "Raleway", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 15px;
}
.navbar-main li.account {
    background-color: #ff0000;
}

.navbar-main .navbar-nav > li > a:hover,
.navbar-main .navbar-nav > li > a:focus,
.navbar-main .navbar-nav > .active > a,
.navbar-main .navbar-nav > .active > a:hover,
.navbar-main .navbar-nav > .active > a:focus,
.navbar-main .navbar-nav > .open > a,
.navbar-main .navbar-nav > .open > a:hover,
.navbar-main .navbar-nav > .open > a:focus {
    color: #eee;
    background-color: #000000;
}

if you want to change a hover color, just find out what it's called in all.css and add your custom css changes to custom.css

Link to comment
Share on other sites

Thanks Brian, i actually found this right before you posted.  I opened up all.css and just searched the color and bam 🙂  Now i am finding it a little difficult to locate the mobile version options.  Obviously the menu is different and my links don't read well on my new background color.  What should i be looking for to locate the CSS for it?

 

nevermind, found it! Dang i'm getting better ..only takes me an hour at a time now

Edited by Greysoul
Link to comment
Share on other sites

  • 8 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated