jjmetcalfe
Member
Posted 5 months ago #
Just updated to WordPress 3.3 and my custom background image has disappeared. Not only that but I can't seem to change the colour of the background. I use the Codium-Extend theme to handle the custom background and can't seem to find where in the editor this stuff would be sorted out.
Any ideas?
Here's the image my site (http://www.squareeyed.net) should be using (tiled) - http://www.squareeyed.net/wp-content/uploads/2011/12/37-21-45-1-FFFFFF-1-FF5E5E-DDEE1E-DDEE1E-DDEE1E-DDEE1E-78D316-78D316-78D316-78D316-78D316-no-yes-yes-yes-yes-.png
Cheers,
JJ
AkihaChan
Member
Posted 5 months ago #
I got this problem with a premium of Elegant Themes as well .
Themes's name : GrungeMagTheme ( I unable to upload themes to test cause it's a premium )
ocpplus
Member
Posted 5 months ago #
Me too, it has changed on all the sites I have and cannot seem to get it back to how it was.
Open header.php and locate your <body> tag.
Change this value to <body <?php body_class(''); ?>>
ocpplus
Member
Posted 5 months ago #
That's been done but it changes the body class in other ways too and not just the background option. IE Changes body width, moves posts/pages horizontally...
Is there a class that defines the background image?
You can make one:
.my-body {
background: image() blah blah
}
And then change it to <body class="my-body">
ocpplus
Member
Posted 5 months ago #
Created this Ipstenu however it does not seem to want to pick the background image up and will not tile it instead choosing to show only a black background.
.new-body {background: url(http://us.allnewson.org/wp-content/uploads/2011/12/USflag2.jpg) background-repeat: repeat-y; }
http://us.allnewson.org isn't loading at all for me so I can't go look...
ocpplus
Member
Posted 5 months ago #
Should be okay now although not much to look at, just a black background instead of the US Flag which should be tiled.
kellogs none
Member
Posted 5 months ago #
NO BG IMG AFTER WP 3.3, WA THE HECK IS GOING ON! LOOK LIKE ITS LIKE THIS FOR ALL THEMES THAT HAVE A BG OPTIONS IN THE WP DASHBOARD.
GRGRRRR
novacode7
Member
Posted 5 months ago #
Replacing <body class="<?php codium_extend_body_class() ?>"> in header.php with <body <?php body_class(''); ?>> worked perfectly. It restored my custom background with no noticeable side effects.
kellogs none
Member
Posted 5 months ago #
too many sites to fix with the code above, will they fix this or will I have to do what novacode7 posted if I want wp 3.3 ?
ocpplus
Member
Posted 5 months ago #
Novacode7's code will work but it may cause other changes to the body, just one of those things with wordpress, you have to adapt to change.
The problem is that some themes were 'doin css wrong' and just got caught at it :/
ocpplus, when I check your site, it's not even calling the .new-body class at all..
I'm wondering if this, in your style.css is the problem:
<style type="text/css">
<!--
IMG {
display: none;
}
-->
</style>
AkihaChan
Member
Posted 5 months ago #
I'm waiting for hotfix , i'm not pro coder .
kams33
Member
Posted 5 months ago #
hey!
I had the same problem, then I found this plugin.
http://wordpress.org/extend/plugins/background-control/
Just install it, than put the url of your image.
jjmetcalfe
Member
Posted 5 months ago #
@novacode7 - that worked great for me. Cheers.
twbeeson
Member
Posted 5 months ago #
I had the same problem (my background disappeared after the upgrade to WP 3.3) using the EduPress theme. I finally took kams33's advice and loaded up the "Background Control" plug-in. I had to "fiddle" with it a bit, but it did work and my background is now back where it should be.
Thanks for the tip kams33!
cant find header php guys
cant find header php?? all have have is home php, theme function php, no primary or secondary page template php, custom query page template php , have no home php???
raafy - Are you using a CHILD theme, perhaps? If so, copy the header.php from the parent theme.
Thank you Ipstenu! The code works! Problem fixed! :-)
You need to get the last version of the theme aka 1.1.3 in order to run wordpress 3.3 in this release you will find the <body <?php body_class(); ?>> in the header.php