Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    Feb 2008
    Posts
    13
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Can't change colour of "persistent" navigation bar

    Hi everyone. For my website I am using a free wordpress theme but I'm having trouble with the menu (sorry about the blinding aqua color). As a feature it has this "persistent" menu option, which basically just pops up the navigation menu at the top of the page if you scroll away from the original menu.

    However, I can't figure out how to change the colour of this menu. I looked through my stylesheet but I can't find anything specific to it, and even when I "inspect element" with chrome, it only shows this:

    Code:
    element.style {
      position: fixed;
      width: 1350px;
      top: 0px;
      left: 0px;
      margin: 0px;
      background-color: rgb(0, 0, 0);
    Which is not in my css file, and this code changes to this when the menu disappears (when I scroll up):

    Code:
    element.style {
      position: static;
      width: 100%;
      top: auto;
      left: auto;
      margin: 0px;
      background-color: transparent;
    I have no idea where this code is coming from and I'm hoping someone can help me out.

    Thanks!

  • #2
    New Coder
    Join Date
    Apr 2013
    Posts
    16
    Thanks
    0
    Thanked 3 Times in 3 Posts
    I'm not sure, but I think it's this code somewhere in one of your theme's file:

    var bg = ((p)>start) ? '#000000' : 'transparent';

    Try changing the #000000

  • #3
    New Coder
    Join Date
    Feb 2008
    Posts
    13
    Thanks
    3
    Thanked 0 Times in 0 Posts
    Thanks for the reply. I looked through most of my files (the ones that made sense to have something like that in there) but couldn't find anything like that unfortunately.

  • #4
    New Coder
    Join Date
    Apr 2013
    Posts
    16
    Thanks
    0
    Thanked 3 Times in 3 Posts
    Try this: download and install notepad++ (freeware)
    http://notepad-plus-plus.org/

    1. open it
    2. Search > Find in Files...
    3. type into "Find What": var bg = ((p)>start) ? '#000000' : 'transparent';
    4. Point it the directory to your Theme's folder and hit "Find All"

    See if notepad++ can find it for you.

  • Users who have thanked leev18 for this post:

    memoIhad (07-31-2013)

  • #5
    New Coder
    Join Date
    Feb 2008
    Posts
    13
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Thumbs up

    o wow. You know, I was trying to figure out a way to search within files for text but I couldn't figure out. I tried changing settings in windows search options but that didn't seem to work...

    This whole time notepad++ had the feature.

    Anddd...thankfully...I found the exact code you were referencing and was able to change it Thanks a lot, there is no way I would have figured out that I need to search for that exact code or that I can use notepad++ to do what I needed without your help.

    THANK YOU! I was about to give up.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •