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. Change color of SiteTitle and Menu in different pages

Change color of SiteTitle and Menu in different pages

Scheduled Pinned Locked Moved General Discussion
6 Posts 3 Posters 1.6k 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.
  • P Offline
    P Offline
    paubo
    wrote on last edited by
    #1

    Hello!

    I would like to change the color of my site title and menu to white only in the FrontPage and keep it black at the rest of the website. this is the site i'm working on. www.victorcatala.com

    Thank you very much!

    1 Reply Last reply
    0
    • R Offline
      R Offline
      rsepierre
      wrote on last edited by rsepierre
      #2

      My fix for this is to insert HTML in the homepage
      (in the page editor [ + MORE ] > [ + HTML ] ), place it where ever you wan't in the page

      0_1482931446728_upload-15a81432-1c60-48df-bb44-bbb809a2180d

      with this code :

              .sitetitle, .primary a {color:white !important;}
              nav.primary a span {border-bottom-color: white !important;}
      

      or this code if you wan't to exclude the phone theme :

      @media (min-width: 900px) {
              .sitetitle, .primary a {color:white !important;}
              nav.primary a span {border-bottom-color: white !important;}
      }
      

      of course instead of "white" insert the color you want

      1 Reply Last reply
      0
      • P Offline
        P Offline
        paubo
        wrote on last edited by
        #3

        Thanks for your answer Rsepierre! But it didn't work to me :(
        www.victorcatala.com
        alt text
        alt text

        1 Reply Last reply
        0
        • arminunruhA Online
          arminunruhA Online
          arminunruh
          Global Moderator
          wrote on last edited by
          #4

          hey man @rsepierre thanks for that answer. Yes it is almost perfect.

          Look, you can use css based on which current page you are on:
          http://laytheme.com/documentation.html#css-based-on-current-page

          So if your frontpage had a "slug" of "frontpage" then you would use:

          body.slug-frontpage .sitetitle.txt,
          body.slug-frontpage .tagline,
          body.slug-frontpage nav.primary a{
          color: white;
          }
          

          You'd put it in "lay options" -> "custom css & html" -> "custom css for desktop"

          P 1 Reply Last reply
          0
          • R Offline
            R Offline
            rsepierre
            wrote on last edited by
            #5

            @arminunruh Ah cool, it is better ! Didn't know we could do this, so i will use it on mine too !

            @paubo yes sorry what i said couldn't work because a bit of code was missing to what I said, you should have added <style></style> like so :

               <style>
                    .sitetitle, .primary a {color:white !important;}
                    nav.primary a span {border-bottom-color: white !important;}
               </style>
            

            BUT

            you should defenitly use armin's solution now !

            1 Reply Last reply
            0
            • arminunruhA arminunruh

              hey man @rsepierre thanks for that answer. Yes it is almost perfect.

              Look, you can use css based on which current page you are on:
              http://laytheme.com/documentation.html#css-based-on-current-page

              So if your frontpage had a "slug" of "frontpage" then you would use:

              body.slug-frontpage .sitetitle.txt,
              body.slug-frontpage .tagline,
              body.slug-frontpage nav.primary a{
              color: white;
              }
              

              You'd put it in "lay options" -> "custom css & html" -> "custom css for desktop"

              P Offline
              P Offline
              paubo
              wrote on last edited by
              #6

              @arminunruh Thank you for the anwser! I didn't see that before.
              Finally it works with this.

              body.slug-about span{
              color: white; }

              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
              R
              ruwie
              arminunruhA
              arminunruh
              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