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
- Create a global variable for use in all templates
- the_author_posts_link css class
- How to auto login user again after change user_login
- WordPress Shortcode and Dynamic CSS
- wp enqueue style and style sheet depth
- How to track a users progress through pages by inserting data into WordPress Database?
- CSS saved & enqueued, but wordpress doesn’t load css text, only file
- WordPress loop specific thumbnail size
- 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?
- How to scale image with equal width and height without distortion?
- WordPress shows registration link for non logged users
- php syntax – how to concatenate properly – echo bloginfo(‘stylesheet_directory)
- Problem adding class to body_class
- Get different images for mobile and desktop with php, advanced custom fields without using js and ajax
- WordPress custom login form using Ajax
- User’s total comment count excluding comments on their own posts
- Why is my cookie not unsetting upon logout? [closed]
- How to display pictures from database?
- Gravity form built in Captcha
- How does wp_enqueue_scripts work?
- Do not execute If User is login as Administrator or any Specific Role
- Problem with login form
- Best practice for show data to one specific user?
- Whats the proper way to use a php stylesheet in a wordpress theme? [duplicate]
- responsive.css in the WordPress should be prioritized
- height should be set to auto to avoid pixelation in the post thumbnail function
- 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?
- “operation successful” message
- WordPress archive page showing 404 Error [duplicate]
- php if username is role
- Removing WordPress Footer -without access to PHP code?
- Show current user posts only
- CSS change in woo commerce Place Order Text [closed]
- One account with multiple logins
- Post repeated when opening in overlay, how do I solve this? [closed]
- Add New Text Box To WordPress Twenty Seventeen Header
- Split site title and apply different classes
- Show site content based on user role
- Twentyfifteen style author comment
- I installed WordPress locally now how do I login?
- Extend Menu Walker Output
- Dynamic CSS through PHP issue
- How to make changes to style.php [closed]
- conditional: if is page, and all subpages
- How to list users like an archive page 10 users on page and have navigations
- Create Columns with Custom Walker and CSS Classes
- Removing “There is no account with that username or email address.” error message in “/wp-login.php?action=lostpassword”
- Can’t log in to WordPress wp-admin after adding code to functions.php
- Why would the child theme load in the Customize preview, but not on the site itself?
- Woocommerce display orders with products from specific categories to specific admins
- Check if user had autologin & if so, logout
- echo cutom css code to WordPress page template file ? is this safe?
- I can’t go to the page archive-{post_type}.php
- Problem with displaying CSS Stylesheets – Am I adding them correctly in my wordpress child theme?
- Trying to generate a CSS file in wordpress uploads folder
- WP Website is shown in HTML
- If user has clicked link add class and store using PHP/WordPress
- I got big white screen when i attach main style sheet of Html in functions.php
- Store data from JavaScript object to custom table in user account
- Add a default style if no Featured image is selected
- How do I send a POST request with params with WordPress REST API
- Styling a specific post after hovering over it
- wp-login.php?redirect_to=https problem
- Query to show average # of months all accounts with specific role have been active
- custom field – changing an element or background of id div – different versions not working
- CSS loading as empty file in Custom Theme
- Editable Student file associated with basic User ID
- Adding users to another blog
- How limit the width of a fixed menu-bar on scroll?
- Private messaging – Getting and displaying the avatar/url of a message recipient
- Updating custom user meta
- Where to find the html for WordPress site? [closed]
- How to remove image on single product and get product to span page?
- widget: input the px value from user and use it as inline style in widget function
- How Can I Center the Logo in the Navigation Menu? [closed]
- Get author meta of all writers
- Let users register weight each day and save it in DB
- How to change the menu color
- Converting Menu Links to List Elements
- How to get shared CSS body class between translated WPML pages [closed]
- How to create and add js and css file when server is not on my PC?
- which php or css file has generated an inline style in WordPress that overwrites my css
- ‘This Field is Required.’ is Not Displaying on CF7 [closed]
- PHP Works only for logged in users: [closed]
- Custom Admin Menu Report for Specific User ID
- ACF block gutenberg aligncenter don’t work
- How can we upload custom page files?
- HELP PLEASE PHP slider css