Advertisement
jesin

Custom CSS

Sep 11th, 2013
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.32 KB | None | 0 0
  1. <?php
  2. function my_inline_styles()
  3. {
  4. ?>
  5. <style type="text/css">
  6.  
  7. <?php if(is_front_page()): ?>
  8. #headercontainer {
  9.   background-color: /*Some color here*/;
  10. }
  11. <?php else: ?>
  12. #headercontainer {
  13.   background-color: /*Some other color*/;
  14. }
  15. <?php endif; ?>
  16. </style>
  17. <?php
  18. }
  19.  
  20. add_action("wp_head","my_inline_styles");
  21. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement