Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Themes & Styling

Quark Theme change color of navigation

Started by Arzu 7 years ago · 4 replies · 2419 views
7 years ago

Hi, i use the Quark Theme and try to change the blue color in the navigation text. 32|552x41
I learned that i could use the custom.css to change for example the background color of the website.
I don't know, what i have to write in the custom.css to change the blue color in the navigation bar for the whole website and for the mobile menu.

Thanks in advance 🙂

7 years ago

You will need to target the link tag using CSS.

CSS
.navbar .btn-link {
   color: your-favorite-color;
}
6 years ago

Hello,

I have the same problem as above : when I hover or when i'm on a page, the link is blue. When i tried to make the solution proposed in my custom.css there is no change.
I have also tried in changing the class headers link (with hover) but again no change.

Do you have an idea ?

Thanks for you time 🙂

6 years ago

@lexouN, I'm afraid aforementioned solution will not work when using the Quark theme...

To make style changes to Quark, you can add code to file '/user/themes/quark/css/custom.css'

  • For menu items displayed on screens larger then 840 pixels (expanded menu)
    • To change the default colour of menu items add the following:
      CSS
      #header .dropmenu ul li a {
      color: red;
      }
      
    • To change the colour of menu items with active, focus and hover add the following:
      CSS
      .dropmenu ul li a.active, 
      .dropmenu ul li a:focus, 
      .dropmenu ul li a:hover {
      color: yellow !important;
      }
      
  • For menu items displayed on mobile (collapsed menu)
    • To change the default colour of menu items add the following:
      CSS
      .treemenu li a {
      color: red;
      }
      
    • To change the colour of menu items with active, focus and hover add the following:
      CSS
      .treemenu li a.active,
      .treemenu li a:focus,
      .treemenu li a:hover {
      color: yellow!important;
      }
      

There are more roads that lead to Rome and this is one of them...

Hope this helps!

👍 2
last edited 05/21/20 by pamtbaau
6 years ago

Thanks ! You're a CSS magician. I wouldn't find it myself.

Great road you indicate 🙂

Suggested topics

Topic Participants Replies Views Activity
Themes & Styling · by Pedro M, 2 months ago
4 193 2 months ago
Themes & Styling · by Ian, 2 months ago
3 91 2 months ago
Themes & Styling · by Norbert, 2 years ago
11 451 3 months ago
Themes & Styling · by Lukáš Findeis, 3 months ago
0 45 3 months ago
Themes & Styling · by Sebadamus, 4 months ago
5 125 3 months ago