Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Lay Theme Forum

  1. Home
  2. General Discussion
  3. Synchronise colour change in navbar with background

Synchronise colour change in navbar with background

Scheduled Pinned Locked Moved General Discussion
4 Posts 2 Posters 277 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • 12b1 Offline
    12b1 Offline
    12b
    wrote on last edited by
    #1

    I am currently working on a site where the About page will have a different background colour, navbar and site title. Please see links below:

    Homepage
    http://foolscap-editions.com/homepage

    About page
    http://foolscap-editions.com/about

    So when you transition between the two pages currently the background colour of the nav bar fades in quicker than the background of the page so feels slightly clunky. Is there a way to avoid this / synchronise?

    Currently I am using the following code:

    /* navbar colour about page*/
    body[data-type="page"][data-id="333"] .navbar{
    background-color: #f28000 !important;
    }

    /* site title text colour about page*/
    body[data-type="page"][data-id="333"] ._Bold {
    color: #ffffff !important;
    }

    /* menu text colour about page*/
    body[data-type="page"][data-id="333"] ._Default{
    color: #ffffff !important;
    }

    1 Reply Last reply
    0
    • edgrbnzE Offline
      edgrbnzE Offline
      edgrbnz
      wrote on last edited by edgrbnz
      #2

      Did you try adding a transition: ease-in-out 1s; and play around with the time?
      Here’s more info about transitions.

      ✦ ✦ ✦

      1 Reply Last reply
      1
      • 12b1 Offline
        12b1 Offline
        12b
        wrote on last edited by
        #3

        Thanks! Useful link. Managed to make a workaround by simply making navbar transparent, didn't think of that first time round!

        1 Reply Last reply
        1
        • edgrbnzE Offline
          edgrbnzE Offline
          edgrbnz
          wrote on last edited by
          #4

          👌
          That’s the way to do it. Didn’t think of this at all…

          ✦ ✦ ✦

          1 Reply Last reply
          1
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          I also code custom websites or custom Lay features.
          💿 Email me here: 💿
          info@laytheme.com

          Before you post:
          1. When using a WordPress Cache plugin, disable it or clear your cache.
          2. Update Lay Theme and all Lay Theme Addons
          3. Disable all Plugins
          4. Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"

          This often solves issues you might run into

          When you post:
          1. Post a link to where the problem is
          2. Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
          3. If the problem is difficult to explain, post screenshots / link to a video to explain it
          Online Users
          Forgot your key, lost your files, need a previous Lay Theme or Addon version? Go to www.laykeymanager.com
          laytheme.com
          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Recent
          • Tags
          • Popular
          • Users
          • Search