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
- How to change the wp-login.php page title?
- How build a custom login/register form with error handling?
- Add extra field to users
- What is the most efficient way to search users by their display name?
- Network installation giving errors when viewing or adding a user
- How can I make content disappear when a user logs in?
- “wp_enqueue_style();” don’t load new edited style
- How do I hide specific user profile fields?
- WordPress 4 invalid username special charachters issue
- Remove username in emails or swap username for email
- Using PHP to toggle stylesheet and header image, set in cookie
- Archive dropdown styling not applied
- Different background-image by category
- Add a Different CSS Class Into The Body Tag of Different WP Pages
- How Display Posts on category
- Slider loading issue
- How to give new users two specific user role options upon WordPress user registration
- Parent theme CSS overriding child CSS rules
- Wp-login appears White Screen, Error: Cannot modify header information
- How to add date to navigation bar
- Cannot access wp-admin/wp-login.php (WordPress backend) anymore, what could be wrong?
- Incorrect MIME type for assets with Valet
- add_cap not working
- Css loads very slow [closed]
- How create a Shortcode with hover and complex options
- WordPress Multiple Navigation bars
- wordpress archive a user
- Login to wordpress by clicking a link and specifying usernaname and password in url
- Call to undefined function get_userdata() in plugin
- Which is the correct way to conditionally enqueue a CSS file?
- Log in / Log Out Custom Button
- WordPress wp_add_inline_style unable to give hex colors?
- How to create table in wordpress without plugin? [closed]
- PHP in CSS file?
- 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?
- wordpress admin plugin menu custom css
- How do you create two separate Register pages?
- How to Change CSS Colors from Custom Plugin Settings Page
- Lost in trying to create user database system
- Get the users that my following users are following
- create front-end users post list by specific category
- Issue Enqueueing WordPress style.css
- PHP getting error when trying to access WP-Admin Dashboard
- If user is logged in not working
- Applying CSS on PHP variable [closed]
- Uses for function: wp_update_user
- Timber right sidebar in WordPress theme
- How to Remove Theme Style CSS inside Custom Plugin?
- Storing huge number of users in wordpress
- Add other class content with reference class value
- PHP warning – Use of undefined constant ‘FORCE_SSL_LOGIN’ ‘FORCE_SSL_ADMIN’ on wp-config.php
- oceanwp+woo mobile cart sidebar text
- Adding Custom css file in the wp-uploads directory with custom php functions
- How do I integrate vanilla Javascript to a wordpress website?
- Having trouble creating two shortcodes, one for logged in user and one for visitors
- Can’t display anything through homepage text editor
- Cannot dequeue Elementor Font Awesome css
- How to find and delete a menu item in php?
- WordPress Slider is not working
- How to display post meta bellow every posts
- Display current user metadata on WordPress page
- Add Shortcode to ::before class
- Refresh page after login with litespeed cache
- Help hooking into user_register
- Redirect after login depending on the URL
- Need help with AJAX login to call php in functions.php to handle redirects based on user cap (role)
- Displaying POST content with HTML tags and all
- 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
- Newbie question. Login/Registration. New PHP page
- Custom Thumbnails [closed]
- How to set max users to 17.000
- Trying to display user meta by “name” – not by “ID”
- wp add inline style in loop
- Display pages from specific page template
- How do I use CSS or PHP to customize WordPress Form Manager Plugin Table?
- Sidebar doesnt get updated?
- How to NOT override inline css rules
- Add CSS class to PHP Statement
- How to add margin underneath woocommerce total price amount -> productpages
- Load files content [closed]
- Load slideshow.css file only if Slideshow is checked / on
- Predefine Magazine Style Layouts
- 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
- ‘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