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 the footer text on the login page
- the_author_posts_link css class
- Can i check if user is doing any ajax request?
- How do I create a WP user outside of WordPress and auto login?
- How to place login logout link on menu that redirects users back to current page?
- wp enqueue style and style sheet depth
- How to track a users progress through pages by inserting data into WordPress Database?
- Theme Customizer – Dynamic CSS PHP File
- CSS saved & enqueued, but wordpress doesn’t load css text, only file
- Using PHP in a Stylesheet (possibly a “.htaccess” problem?)
- WordPress doesn’t include css
- Understanding child theme functions.php
- Is it possible to use the featured image of a page as a css background without inlining?
- How to display a value from a radio button in the options menu in wordpress
- How should I best target dynamically served content?
- Style every second widget?
- How to scale image with equal width and height without distortion?
- PHP If user is logged in & on home page redirect
- WordPress shows registration link for non logged users
- php syntax – how to concatenate properly – echo bloginfo(‘stylesheet_directory)
- wp nav menu: add attributes to menu items [duplicate]
- Warning: Use of undefined constant HTTP_USER_AGENT – assumed ‘HTTP_USER_AGENT’ (this will throw an Error in a future version of PHP)
- Problem adding class to body_class
- WordPress custom login form using Ajax
- Plugin CSS not enqueing
- User’s total comment count excluding comments on their own posts
- How to: PHP Log Out Link?
- Why is my cookie not unsetting upon logout? [closed]
- Show all posts by author
- How to design a table based on css values set from admin/dashboard
- getting logged in user info (wp-load.php) from parent directory
- Best way to schedule daily change in CSS parameter
- Gravity form built in Captcha
- How does wp_enqueue_scripts work?
- Problem with login form
- Call to undefined function get_userdata() in plugin
- Custom Background by Page IDs
- Add class to DIV depending on page loaded
- Liking a facebook page from wordpress website?
- trouble with page_id & highlighting current page
- Where can I find the inline-css of my theme header?
- Get the users that my following users are following
- Shortcode to log user into current URL
- Website completely messes up when logging out
- Issue Enqueueing WordPress style.css
- PHP getting error when trying to access WP-Admin Dashboard
- How to add new CSS file to new PHP file
- Applying CSS on PHP variable [closed]
- How to find which .mo file is responsible for displaying a particular localized string?
- How to Remove Theme Style CSS inside Custom Plugin?
- Allow a user or role to view drafts and previews, but not other admin privileges?
- PHP warning – Use of undefined constant ‘FORCE_SSL_LOGIN’ ‘FORCE_SSL_ADMIN’ on wp-config.php
- Get current user id in function php
- Uploading/integrating custom user registration page
- Restrict wordpress access to logged users only
- Page template not working when logged out
- Add my footer menu to the header
- Display current user metadata on WordPress page
- Add Shortcode to ::before class
- Make a full-width wordpress page
- Bring Font Awesome icons inside menu A tags
- Add another role to a user when they click a button?
- Trying to add get_the_title hook to this line
- How to display post_content from database in different on template page?
- remove blank space where sidebar was
- Can’t get_users info by using json_encode
- Check if a user is logged into my WordPress site which is on a different server
- Display specific main Sub Nav on Woocommerce product pages
- Clone the “proceed to cart” button and place it above checkout on the cart page, but only appear display size is 320px
- Newbie question. Login/Registration. New PHP page
- Highlight Single Page Ancestor
- Relative post date in recent posts list
- Not logged in when using http
- Why isn’t my link attribute getting my css?
- How to ‘remember’ a site member’s last visited page?
- How to connect database table to each registered wordpress user.
- How to save the output of php variables used in inline css code to the main style.css?
- wp add inline style in loop
- Trying to customize wordpress drop down categories
- Display a list of users with avatar filterable with alphabets
- Redirect users not logged in to the standard login page (and back) from some posts and pages
- Integrating CSS Into a WP Function Call [closed]
- Check if username doesn’t exists
- It’s not showing full content for posts pages in wordpress “[…]” while customing some changes in the style.css file [closed]
- Add a “Next Post” & “Previous Post” styled button manually to a post
- WP query with variables gives no result for specific user
- Import users and custom user meta from csv
- Prevent users from display default wordpress login form
- Getting invalid user ID error when creating a new user with wp_insert_user
- WooCommerce Checkout Cart [closed]
- Can’t programmatically log user in php