Support » Networking WordPress » add custom background function for multisite theme

  • Resolved dguyen


    Scouring the internet with no avail. When implementing the add_custom_background to my functions.php file -the image uploader does not work. Color picker works but not the image upload.

    I am testing on two local installs. First on a custom theme with multisite enabled and one on default install using TwentyTen. The background image does not store… what is up?

    Thanks in advance to this wonderful community!

Viewing 15 replies - 1 through 15 (of 23 total)
  • Andrea Rennick


    Customer Care at Copyblogger Media and Studiopress

    So… on a default install with the default theme it won’t let you upload a custom background?

    What error do you get?

    That’s the thing, I don’t get any errors… it says it’s saved, but doesn’t show in the preview or on show up on the actual site. I also don’t see the file in uploads, either! I assume the background image saves to that directory, no?

    I must have something wrong! I just can’t figure it out.

    Andrea Rennick


    Customer Care at Copyblogger Media and Studiopress

    What’s the permissions on the uploads folder?

    Because it definitely works in multisite.

    Moderator Ipstenu (Mika Epstein)


    Lead Plugin Wrangler

    What uploads folder? You’re looking in blogs.dir/#/files

    Here’s the quirky issue. As I was scanning wp-admin/custom-background.php I noticed there are suppose to be headings for:

    • Positions
    • Repeat
    • Attachment

    But I don’t see those additional options in my admin area under Background? What does anyone else think? As for the blogs.dir files and uploads folder, I have no problem uploading images (via Media uploader)…

    Any suggestions to my add_custom_background saving image upload problem?

    Andrea Rennick


    Customer Care at Copyblogger Media and Studiopress

    I think we need more info. the default install works fine in multisite, the custom background works fine in multisite. It has to – they use it on

    It;s just not working on *your* site. and none of us can check it because we have no idea where that is. 🙂

    I understand. I know for sure it’s a problem with my own install. I found that to be once both installations (multisite and default) exhibited the same issue.

    I want to verify… under “Background” are there options for Position, Repeat, and Attachment?

    Andrea Rennick


    Customer Care at Copyblogger Media and Studiopress

    those options show up *after* you upload the file. they pop right down on ya.

    I just went and did it myself. Did you try uploading a graphic?

    I tried to upload two different pictures and a graphic (PNG). One picture that was the same as one uploaded using the Media Uploader and a completely separate JPG. Both pictures work fine when using the custom Header option. It’s just the damn custom Background option.

    I’ve re-installed WP (automatically), I think I might just have to uninstall fresh reinstall…

    Andrea_r thanks for your persistence. Don’t worry about giving this much more attention. It’s gotta be something I’ve messed with. If you come up with anything “A HA” like, then please post, otherwise… I’ll keep plugging away and re-post when I find the solution.

    Having this same problem on my site. Says file is uploaded, gives the position/repeat/attachment options — but no preview or change to background. Color picker works fine.

    About to try the dreaded plugin flush…

    …with no effect. For once, it does not seem to be a plugin.

    I’m on 3.1 – alpha using my custom (i.e. hacked-up) Genesis Child theme.

    Andrea Rennick


    Customer Care at Copyblogger Media and Studiopress

    So… you added this feature to your own child theme (or a child theme that didn’t have it)?

    Hmm… I’m getting similar “seems to work but doesn’t display the image” behavior with ordinary uploading of images to a post.

    Caption / CSS box shows, but there’s no image.

    (Yes, this is a Network install.)

    The image (a woodcut of a whirlpool) has been uploaded to the appropriate folder, but isn’t displayed. In fact, when I check this month’s folder, I find multiple copies of the background images that I attempted to use earlier. (I added custom background support to the functions.php file of my Genesis child theme.)

    Is this happening for you as well, dguyen?

    Andrea Rennick


    Customer Care at Copyblogger Media and Studiopress

    That’s a different issue then. 🙂

    Guess so. 🙁

    Know anyone / anythread else with uploader problems?

Viewing 15 replies - 1 through 15 (of 23 total)
  • The topic ‘add custom background function for multisite theme’ is closed to new replies.