Admin bar

Jeff Klunder asked on May 17, 2017 14:18

Hi all,

I was wondering; does Kentico add a class to the html- or body-tag when the admin-bar is visible? Don't see any difference when the bar is or isn't displayed, so I guess not...

The reason for my asking is the fact that when I'm logged in and want to enter the edit mode, the cms bar covers some elements in my markup. Therefor, when I could call a class, I could reposition those elements when needed.

Recent Answers


Brenden Kehren answered on May 17, 2017 15:06

In your css you'll have to add a few classes to override the Kentico classes:

  • .EditMode for when you're on the page tab
  • .DesignMode for when you're on the design tab

So if you add some css like so to show your nav because its fixed:

.DesignMode .nav, .EditMode .nav { position: relative; }

0 votesVote for this answer Mark as a Correct answer

Jeff Klunder answered on May 17, 2017 15:46

Sorry, but I think I'm misunderstood. I've added a screenshot which hopefully explains my problem a bit more.. Waht i am trying to accomplish is when the white bar is displayed, the div with the logo moves down a couple of pixels. When the white bar isn't displayed, the div with logo moves back up.

Image Text

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on May 17, 2017 15:59

Ahh you have to look for a css class to override by viewing the source of that page. I never us on-site editing for my clients.

0 votesVote for this answer Mark as a Correct answer

Jeff Klunder answered on May 17, 2017 16:21

Hi Brenden,

Okay, then I'll look for a class which I can use for this. Otherwise I'll look for a different fix. Thanks for your reactions though..

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.