Jump to content

Archived

This topic is now archived and is closed to further replies.

nadielp

trouble setting a custom color in NavBar

Recommended Posts

nadielp
Hi Everyone,
 
I don't seem to be able to set a custom color in NavBar.
 
I have tried three different methods and none of them have worked.
I tried to set the background color for the section to CC3333 but that doesn't appear. I assume this has to do with the fact that the colors are set in a dropdown selector...but anyway. I also tried to use each of these CSS settings in less/css. For the first one I tried to add a color setting to the changes I already had implemented but that did not work and then I tried the second one and that also did not work.
 
I am not sure what I am missing here but if anybody can shed some light, I would certainly appreciate it.
 
 
 
.navbar.navbar-full-width {
    border-radius: 0px 0px 0px 0px;
    font-size: 16pt;
    letter-spacing: 1.0px;
    word-spacing: 10px;
    background-color: rgb(240, 72, 49);
    min-height: 0px;
}
 
 
.navbar.pl-color-base .navline > li:hover > a, .navbar.pl-color-base .navline > li.current-menu-item > a, .navbar.pl-color-base .navline > li.dropdown.open > a {
color: rgb(240, 72, 49);
background-color: rgb(240, 72, 49);
}
 
Thanks!

 

Share this post


Link to post
Share on other sites
Danny

Hi,

 

Use the following code to add your own custom color:

 

#site .section-navbar .navbar.pl-color-red {
background-color: green;
}

Please search our forums, before posting!

Share this post


Link to post
Share on other sites
nadielp

Thanks Danny! It worked perfectly. Can I ask why it needs the .navbar.pl-color-red? I would have never thought to add that.

 

Thanks.

Share this post


Link to post
Share on other sites
Danny

That is because on your site, you have selected the red background color for your Nav and therefore, the color is coming from that class. If you wish to override the red color, you will need to include that class, which is I did.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
nadielp

Thanks Danny!

Share this post


Link to post
Share on other sites
Danny

No problem.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites

  • Similar Content

    • stijnxo
      By stijnxo+
      Is it possible to get the children of the parent page in Powerloop using Custom Taxonomy and Custom term?
    • Bleuy
      By Bleuy+
      How can I get support on pagelines DMS? The product isn't that old and my skeleton themes aren't working and I can't get support in the same way? 
    • Bleuy
      By Bleuy+
      I have a number of legacy websites that are running on the above version of Pagelines DMS, where the template has stopped working. I am using a skeleton theme to all of them. What do I need to do to rectify this.
       
       
    • Steve Webb
      By Steve Webb+
      I am having an issue with DMS editor not loading.  Just keeps spinning and spinning.
      Have tried several things - Logged in and out, cleared cache, deactivated all plugins, but the issue persists.
      I even had our host restore from a backup a few weeks ago, when I know it WAS working, as I edited a text box on the homepage.  The restore from backup didn't help either.
      Also, the front end of the site shows that the site is framed, or boxed now (whatever you call it), instead of full width as it was previously (last week).
      Dev console shows that there are php errors in Google maps - file is attached.
      Can someone please help?  Not sure what else I can do here...
      Thanks in advance.
      -Matt

    • tuciudadenred
      By tuciudadenred+
      Hi everyone, what happens is that the web page metrosalarmas.com has a google tags which I have not attacked where I can look to remove those tags and be able to locate the correct ones.
×