2 replies [Last post]
cori.warner@yahoo.com's picture
Last seen: 6 years 3 weeks ago
Timezone: GMT-6
Joined: 2017-03-07
Posts: 1
Points: 2

Hello, I'm a wordpress user & I can do some basic CSS, but conditional logic generally defeats me. I would like to change the background color of the menu bar after users log in. In general terms, how would I go about this? Thanks in advance for any guidance.

Tony's picture
Last seen: 6 days 14 hours ago
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5344
Points: 2965

Hi Carl, The easiest way is

Hi Carl,
The easiest way is to see if any attribute or class is added to a tag such as Body once you have logged in.
That's not there when not logged in.
For example:
<body class="logged-in">

Then you can use that to to target the menu.

.logged-in .menu{
  background-color: red;

Since i don't have your site address this is just a guess.

Hope that helps.

johnkelin's picture
Last seen: 5 years 47 weeks ago
Timezone: GMT+5
Joined: 2016-10-07
Posts: 2
Points: 2

I really don't have much

I really don't have much knowledge about web design but this is also the fact that its not an easy job to design a simple and explanatory design in a couple of hours. I have remembered the days, when i have designed from an affiliate website design ileaddigital.com/services/web-design/affiliate-cms-development It takes almost 4-5 weeks for responsive and attractive website. Anyways, i came to know few thing about web designing after reading your nice piece of content. Thanks for it.