SHARE
TWEET

Custom CSS

jesin Sep 11th, 2013 72 Never
  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. ?>
RAW Paste Data
Top