Jump to content

Archived

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

kzaiman

DMS2 - Changing Hover in the Navi Section

Recommended Posts

kzaiman

I'm trying to make the hover color of the NAVI section even darker than the default (I think it's .03). I've entered the custom code below,

 

#site .section-navi .navi.pl-nav> li:hover > a,
#site .section-navi .navi.pl-nav> li.current-menu-item > a,
#site .section-navi .navi.pl-nav> li.current_page_item > a,
#site .section-navi .navi.pl-nav> li.dropdown.open > a {
  opacity:1;
  background: rgba(0,0,0,.2);
}
 
This works, but only temporarily. As soon as I work on anything else, the effect is gone. The code is still in the custom box.
Any ideas on what is causing this and/or how to correct it?
 
Thanks,
Kim

Share this post


Link to post
Share on other sites
jmad

Seems like that's too much.. what's your site?

 

Share this post


Link to post
Share on other sites
kzaiman

Sorry, the site isn't live yet, I'm working on it locally.

 

Share this post


Link to post
Share on other sites
Danny

Your custom CSS shouldn't work one moment and not the next, if this is the case then we need to see this issue on a live site, can you do this ?

Also, try the following instead:

 

#site .section-navi .pl-nav  > li > a:hover,
#site .section-navi .pl-nav  > li.current-menu-item > a,
#site .section-navi .pl-nav  > li.current_page_item > a,
#site .section-navi .pl-nav  > li.dropdown.open > a {
  opacity: 1;
  background-color: red;
  color: white;
}

 


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
kzaiman

I figured out why it was disappearing. The changes I made were not saving in the custom section. I had to go into WP dashboard, Pagelines dashboard, and then Save LESS to get the changes to "take".

And Danny, your version of the code makes it work.

 

Thanks!

Kim

Share this post


Link to post
Share on other sites
Danny

You shouldn't add your code to the fallback system in the PageLines dashboard, that is there for removal only. If you're adding CSS/LESS CSS to the DMS custom panel and it isn't saving then the likely cause is a script or plugin you have added/installed.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
kzaiman

Ahhhh. I will start to go through my plugins. I was not aware of this.

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

    • Lisa Haran
      By Lisa Haran+
      Hi 
      I have a map here http://www.iloveoffset.com/maps/
      I want to add several pointer locations to the map, but when I do they do not appear.
      On this map there are 2 pointer locations and as you can there is only one visible.
      Earlier today I added 7 and could only see 4 so there is something odd going on.
      My theme is up to date
    • clj182
      By clj182+
      Hello,
      I've been having trouble unlocking the template section for past couple of weeks. When I try clicking nothing happens. 
      I've deleted my custom css and removed plugins. Im down to having only the following plugins:
      Akismet
      Contact Form 7
      DMS Professional Tools
      Pagelines Updater
      WooCommerce
      It was working fine before i have no idea what's going on with it.
    • flourishdesignstudio
      By flourishdesignstudio+
      My DMS 2 site http://www.heart-stone.com/ will not save any new custom css... I can still edit templates and publish those but any custom css that I enter never saves.
      All WP files, themes, and plugins are up to date. 
      Any thought about what might be causing this?
    • flourishdesignstudio
      By flourishdesignstudio+
      Is there a way to edit the custom CSS via FTP? I know I can edit the custom code in the Chrome editor but is there a file path I can use to find and edit the CSS directly from our FTP?
      Thanks in advance for the help!
    • nizami
      By nizami+
      Using navbar section with correctly configured WP menu to display main navigation at https://elenaangel.com. 
      All fine in desktop viewport. Menu displays twice in hamburger mode. How to fix this please? 

×