Jump to content

Link colors in Nav bar


AllanD

Recommended Posts

Hello Allan,

 

In bootstrap.css the following CSS controls the link color:

 

.navbar .nav > li > a {
   color: #999999;
   float: none;
   line-height: 19px;
   padding: 9px 10px 11px;
   text-decoration: none;
   text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); }

 

Instead of editing bootstrap.css I recommend creating a new CSS file and load it after the whmcs.css. e.g in header.tpl add the following below the line that loads whmcs.css:

 

<link href="templates/{$template}/css/custom.css" rel="stylesheet">

 

Then in the css directory create custom.css and add the following:

 


/* Changes the WHMCS menu link color */

.navbar .nav > li > a {
   color: red;
}

 

This is much cleaner and makes updating the template in future easier and quicker as you won't have to re-do changes to bootstrap.css.

 

Regards,

Jack

Link to comment
Share on other sites

  • 4 months later...
Awesome thank you very much.

 

I just tried the custom.css and it's not showing with the custom color. Would you happen to have any suggestions?

 

Hello Allan,

 

Sorry I missed your reply earlier. If you contact me via PM with your header.tpl and custom.css file I'll be happy to check them for you.

 

Thanks,

Jack

Link to comment
Share on other sites

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