Created
June 28, 2011 16:11
-
-
Save sbrajesh/1051497 to your computer and use it in GitHub Desktop.
modification of Background css for Jeremy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter("bppg_iwilldo_it_myself","__return_true");//stop the plugin to inject css | |
//now we can write our own css | |
add_action("wp_head","my_css_for_profile_bg"); | |
function my_css_for_profile_bg(){ | |
$image_url=bppg_get_image(); | |
if(!$image_url) | |
return;//this user has not uploaded an image yet | |
?> | |
<style type="text/css"> | |
body.is-user-profile { | |
background:url(<?php echo $image_url;?>);/*please customize it*/ | |
} | |
body.is-user-profile .wrap{ | |
background:transparent; | |
} | |
</style> | |
<?php | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment