Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Brite
  • 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. Burger colour mobile

Burger colour mobile

Scheduled Pinned Locked Moved General Discussion
9 Posts 2 Posters 1.6k Views 1 Watching
  • 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.
  • T
    T
    Toby
    wrote on last edited by
    #1

    HI

    Im trying to change the colour of the burger on the mobile version to coincide with my coloured category pages / projects

    www.tobyneilan.com

    i have pasted in this this code - example given for "isolated" project

    .slug-fashion .burger span {
    background-color: #ff1900;
    }
    body[data-type="category"][data-id="5"] .burger span:before,
    body[data-type="category"][data-id="5"] .burger span:after{
    background-color: #ff1900;
    }
    body[data-type="project"][data-id="875"] .burger span:before,
    body[data-type="project"][data-id="875"] .burger span:after{
    background-color: #ff1900;
    }

    It works on the category pages but on the project page the middle bar of the menu remains white

    have I missed something in my code?

    Cheers
    Toby

    1 Reply Last reply
    0
    • mariusjopenM
      mariusjopenM
      mariusjopen
      Global Moderator
      wrote on last edited by
      #2

      Hi @Toby
      you need to paste this code also in the MOBILE CSS section and not only in the DESKTOP CSS section.

      I hope that solves the issue!

      Best!

      Marius

      www.mariusjopen.world

      1 Reply Last reply
      0
      • T
        T
        Toby
        wrote on last edited by
        #3

        @toby said in Burger colour mobile:

        body[data-type="category"][data-id="5"] .burger span:before,
        body[data-type="category"][data-id="5"] .burger span:after{
        background-color: #ff1900;
        }
        body[data-type="project"][data-id="875"] .burger span:before,
        body[data-type="project"][data-id="875"] .burger span:after{
        background-color: #ff1900;
        }

        Hi Marius
        The code is already in my mobile css section - I added to my desktop section too
        but the white middle bar still remains!?

        Cheers
        Toby

        T 1 Reply Last reply
        0
        • T Toby

          @toby said in Burger colour mobile:

          body[data-type="category"][data-id="5"] .burger span:before,
          body[data-type="category"][data-id="5"] .burger span:after{
          background-color: #ff1900;
          }
          body[data-type="project"][data-id="875"] .burger span:before,
          body[data-type="project"][data-id="875"] .burger span:after{
          background-color: #ff1900;
          }

          Hi Marius
          The code is already in my mobile css section - I added to my desktop section too
          but the white middle bar still remains!?

          Cheers
          Toby

          T
          T
          Toby
          wrote on last edited by
          #4

          @toby

          Hi Marius

          Any clues to why the middle bar still remains white?

          Cheers
          Toby

          1 Reply Last reply
          0
          • mariusjopenM
            mariusjopenM
            mariusjopen
            Global Moderator
            wrote on last edited by
            #5

            Hi @Toby
            but now it seems to work, right?

            Best!

            Marius

            0_1514629592484_Bildschirmfoto 2017-12-30 um 11.25.43.png

            www.mariusjopen.world

            1 Reply Last reply
            0
            • T
              T
              Toby
              wrote on last edited by
              #6

              @mariusjopen

              Hi Marius

              It does until you click through into the project pages and then the middle line turns white.

              Cheers
              Toby

              1 Reply Last reply
              0
              • mariusjopenM
                mariusjopenM
                mariusjopen
                Global Moderator
                wrote on last edited by
                #7

                Hi @Toby
                it looks like you need to add more custom CSS code.

                Try to add this as well:

                .burger span, .burger span:before, .burger span:after {
                    background: red !important;
                }
                

                All the best and a happy new year!

                Marius

                www.mariusjopen.world

                1 Reply Last reply
                0
                • T
                  T
                  Toby
                  wrote on last edited by
                  #8

                  @mariusjopen said in Burger colour mobile:

                  .burger span, .burger span:before, .burger span:after {
                  background: red !important;
                  }

                  Hi Marius

                  HNY

                  Thanks however adding that code turns the menu bar red throughout my website - overwriting the other colour changes I have for my categories - blue for architecture / green for portraits etc
                  is there a way to isolate that code to the project page?

                  Cheers
                  Toby

                  1 Reply Last reply
                  0
                  • mariusjopenM
                    mariusjopenM
                    mariusjopen
                    Global Moderator
                    wrote on last edited by
                    #9

                    Hi @Toby
                    exactly. Since you have different colors for different pages.
                    It is quite complex to adjust the colors. Quite a pain in the ass :-)

                    You need to play around with it. Things interfere with each other and the code can get quite messy.

                    You are almost there!

                    Good luck!!

                    Marius

                    www.mariusjopen.world

                    1 Reply Last reply
                    0

                    Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                    Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                    With your input, this post could be even better 💗

                    Register Login
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    Online Users
                    A
                    alasdair17
                    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