Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!

Using Different Style Sheets Based On If Logged In

By: bphelp on Mar 27th, 2013  |  syntax: None  |  size: 0.34 KB  |  views: 59  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2. function bphelp_use_different_stylesheets() {
  3. if ( is_user_logged_in() ) {
  4. ?>
  5. <link rel=&quot;stylesheet&quot; href=&quot;"/home.css
  6.         type="text/css" media="screen" />
  7. else{
  8. <link rel=&quot;stylesheet&quot; href=&quot;"
  9.         type="text/css" media="screen" />
  10. }
  11. <?php
  12. }
  13. }
  14. add_action ('bp_head', 'bphelp_use_different_stylesheets');
  15. ?>