You can use the logged-in
class added by body_class
to target your CSS rules.
.container { height: 160px }
body.logged-in .container { height: 30px }
Related Posts:
- Changing user_nicename
- automated tests as a user?
- User management system similar to wordpress one?
- Programmatic Login from 3rd Party site
- Admin Panel 404 Error after login
- How to block specific user id in custom login form?
- Call WP Rest-Api to GET /users/me returned NOTHING in console
- is_user_logged_in() not working in homepage
- List users in a dropdown for login
- change Dashboard default page on login
- Slider loading issue
- Plugin CSS not enqueing
- How to give new users two specific user role options upon WordPress user registration
- Hide Hamburger Menu On Specific Page (Front Page/Home Page)
- Parent theme CSS overriding child CSS rules
- how to remove metadata from the posts of my blog?
- How to style options page in dashboard?
- Theme Options Page – User Updates Logo
- How to use my style.css file outside of wordpress subdomain?
- Dynamic Stylesheet loads but doesn’t finish
- Wp-login appears White Screen, Error: Cannot modify header information
- How to add date to navigation bar
- User’s total comment count excluding comments on their own posts
- How to: PHP Log Out Link?
- Login/logout in header
- Selectbox in admin panel function linking to CSS
- Why is my cookie not unsetting upon logout? [closed]
- Can I install/embed WordPress on a ‘single page’?
- Using if/else statements with output from theme options
- Is there CSS to expand the gallery limit on Index Pages?
- Show all posts by author
- Custom user login page by creating a plugin
- How to design a table based on css values set from admin/dashboard
- Cannot access wp-admin/wp-login.php (WordPress backend) anymore, what could be wrong?
- How to debug my custom login form looping intermittently
- Add New User, extra fields which are required?
- user_profile_update_errors hook not executing
- Modify user profile data through scripting?
- getting logged in user info (wp-load.php) from parent directory
- Incorrect MIME type for assets with Valet
- How to display pictures from database?
- Get users that likes the post
- How to add condition in wordpress loop? [closed]
- custom user role wordpress – grant guest access to edit.php without insert/update/delete
- add_cap not working
- Customize position of social icons in upme plugin [closed]
- Best way to schedule daily change in CSS parameter
- Css loads very slow [closed]
- Gravity form built in Captcha
- How does wp_enqueue_scripts work?
- Do not execute If User is login as Administrator or any Specific Role
- Different post styles depending on category
- How create a Shortcode with hover and complex options
- WordPress Multiple Navigation bars
- wordpress archive a user
- Problem with login form
- Best practice for show data to one specific user?
- Login to wordpress by clicking a link and specifying usernaname and password in url
- two columns of posts on homepage, one of them “favorites”
- Auto 301 to full post permalink? (using : /archive/%post_id% to %post_name% )
- Whats the proper way to use a php stylesheet in a wordpress theme? [duplicate]
- Call to undefined function get_userdata() in plugin
- custom css for admin only
- responsive.css in the WordPress should be prioritized
- How do I add a custom css to all posts without affecting homepage css? [closed]
- Which is the correct way to conditionally enqueue a CSS file?
- Custom Background by Page IDs
- proper way to add css using functions.php?
- WordPress style.css not updating, only after theme reload
- Adding logo to WordPress header
- Log in / Log Out Custom Button
- Thumbnails appear to be zoomed
- Use PHP in stylesheet to specify a background image based on Category ID
- Automatically set all tags to have a height of 0 if there is no content inside the tag [closed]
- Should `wp_login` be used since it’s deprecated?
- height should be set to auto to avoid pixelation in the post thumbnail function
- Odd / Even posts add class minus first post
- How to redirect users based on role and content of redirect_to?
- get_users meta_query: REGEXP not working for matching new lines
- How to display login form anywhere, when user isn’t logged in, without redirecting?
- How to show a users bio on a page
- How can I open up my administrative panel to everyone?
- “operation successful” message
- RTL Stylesheet Confusion with WordPress
- Correct way to enqueue page specific CSS file
- Wrapping a Sidebar within
- Add Codepen animation as Preloader to WordPress
- WordPress wp_add_inline_style unable to give hex colors?
- Reduce size of responsive title
- How to make container class in PHP
- How to create table in wordpress without plugin? [closed]
- WordPress archive page showing 404 Error [duplicate]
- php if username is role
- PHP in CSS file?
- Clickable image link sends people to wrong URL
- Styling the second sidebar
- Add class to DIV depending on page loaded
- Liking a facebook page from wordpress website?
- trouble with page_id & highlighting current page
- Last class on last headline?