[Plugin: Options Framework] background settings
-
im trying to output the background settings, what i have is this:
<body <?php body_class(); ?><?php $background = of_get_option('background'); if ($background) { if ($background['image']) { echo 'style="background:url('.$background['image']. ') '; foreach ($background as $i=>$param){ echo 'background-'.$i .'= '.$param.' ' ; } } } else { echo 'style="background-color:'.$background['color'].''; }; ?>>what i get is:
<body class="home" background-attachment="scroll" center="" background-position="top" background-repeat="no-repeat" background-image="http://127.0.0.1:8080/wilson/wp-content/uploads/2011/08/bg_body1.jpg" background-color="#000000">how do i fix this?!
by the way, niiiice plugin!!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘[Plugin: Options Framework] background settings’ is closed to new replies.