Advertisement
meetsos

Change CSS in WP when user is logged in

Jan 31st, 2018
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 0.39 KB | None | 0 0
  1. /* If your theme is correctly using body_class() and a user is logged in, Wordpress adds a class "logged-in" to the body-element, so we can use this in our stylesheet */
  2.  
  3. /* LOGGED OUT */
  4. .sellertitle {
  5.   float: none;
  6.   width: 49%;      
  7. }
  8. .otherseller {
  9.   display: none;
  10. }
  11.  
  12. /* LOGGED IN */
  13. .logged-in .sellertitle {
  14.   float: left;    
  15. }
  16. .logged-in .otherseller {
  17.   display: inline;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement