Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function my_inline_styles()
- {
- ?>
- <style type="text/css">
- <?php if(is_front_page()): ?>
- #headercontainer {
- background-color: /*Some color here*/;
- }
- <?php else: ?>
- #headercontainer {
- background-color: /*Some other color*/;
- }
- <?php endif; ?>
- </style>
- <?php
- }
- add_action("wp_head","my_inline_styles");
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement