![]() |
Here's my dilemma,
I want to keep the wordpress admin bar because I want my users to have easy access to posting stories and I'm putting custom links in the admin bar as well for them as well, but I also have a fixed nav which looks great when users aren't logged in but when they're logged in...
It looks like this: http://screencast.com/t/6jML7HIhg1
Is there anything I can add to my CSS and/or header file to keep this from happening. I like where the nav is currently and don't want to move it to the top above my logo.
My website is http://bit.ly/1prvicW so that you can see how the header looks when a user isn't logged in to compare.
Thanks for your help.
Solution - 1Hello Brennen when the admin bar is shown in the front end, the body tag will accompany with class called logged in. you can use that class to control the layout. eg: body.admin-bar /*additional class goes here */ { } that can control the layout of the site. can you create a subscriber login for me and PM me the detail. so that I can give the exact class. or can you give me the exact theme name and link for the theme. Solution - 2Add the next CSS code good luck Solution - 3i think this.. #wpadminbar{top: 95px !important;} Solution - 4If after loggin in your body class contain "logged-in" then following might work. above code should be added at after this code at line no. 3043 If body tag do not contain class "logged-in" then add following code in your theme's functions.php file
|
Wordpress |
Type: | Code Example |
Category: | Coding |
Sub Category: | Code Example |
Uploaded by: | Admin |
Views: | 7 |