Shiba

Adventures in WordPress

  • — Home —
  • Dog
  • Art
  • Contact
  • WordPress Articles
    • WP Plugins
    • WP Programming
    • WP Admin Panels
    • WP Theme Design
    • WP How-To
    • WP Theme Images
You are here: Home / WordPress Plugin / Custom Background Plugin

Custom Background Plugin

Tweet

by ShibaShake 60 Comments

This plugin has been retired. It will no longer be supported or updated.

The Custom Background Plugin allows you to customize any WordPress theme by adding in your own background images and colors right from your WordPress Dashboard. You can create any number of backgrounds, and assign them to individual posts, post categories, or to your entire blog.

[Most recent Shiba Backgrounds updates]

Sept 9th, 2012 – Release 1.5

  • Updated plugin for WordPress 3.4.
  • Fixed Cheatin’uh error.
  • Enable theme switching.
  • Cleaned up how background data is stored.

Example Thematic Background

Twenty Ten Unleashed!

Twenty Ten - Glamour

Twenty Ten - Car Girl Theme

Here are some example pages with customized backgrounds. Themes used include Twenty Ten, Thematic, and Smooth. All pages were created using the Shiba Custom Background Plugin.

How to Get Shiba Backgrounds Plugin

1. Create a Custom Background

You can flexibly customize your theme by creating background objects. Background objects are similar to your WordPress galleries. They allow you to group together a set of images that you can then use as backgrounds for your theme.

Create a background object by going to Backgrounds >> Add New (Or Media >> Create Background in WordPress 2.9). Enter in a title for your background object and then click on Publish (Update Background in 2.9).

Congratulations – you have successfully created your first background object.

1. Create custom background object.
1. Create custom background object.

2. Assign Theme Colors

Background objects can also contain theme colors, in particular – background, text, link text, header, and sub-header colors.

The Edit Background screen gives you a color selector and a row of buttons for selecting the five different classes of colors. Click on the text class you want to select the color for, then select the color using the color-wheel.

As you select different colors, the text and background colors of the example paragraph text (to the left) will change. This gives you a rough idea of how your blog colors will look when combined together. Once you are happy with your color choices, click on the Update Background button. Your color choices will be saved, and be reflected in your assigned blog backgrounds.

The Propagate Colors checkbox will propagate the background and body text colors to all child containers within your theme.

If this box is left unchecked, the colors you just assigned will only be set for the body of your web page. As a result, they may get overridden by more specific color settings assigned by your current theme.

For example, the screenshot below shows the comments area for the example Thematic background with propagate colors turned off. As you can see, the comments area is now colored using the original Thematic theme colors.

Example Dark Thematic Background without propagate colors.
Example Dark Thematic Background without propagate colors.

The Use Theme Colors button will discard all colors associated with your background object and revert back to using your current theme colors.

In general, you either want to propagate colors, or just use your default theme colors. You may also set colors for only the components that you want. For example, you may just choose to set the background color and leave the other colors blank. In this case, the plugin will use your defined background color, and revert to original theme colors for all the other components.

Note – The plugin only sets colors for common HTML and WordPress blog tags. Some themes may use non-standardized tags, which will be left untouched by the plugin.

3. Load Background Images

You can load images into your background object by clicking on the Add New button towards the bottom of the background edit screen.

Add new background images.
Add new background images.

Clicking on the Add New button will bring up a pop-up that allows you to include images either from your local computer, or from your blog Media Library.

The interface here is the same as the one used for inserting images into your blog posts. If you are loading images from your local computer, new attachment objects will be created for each image and added to your WordPress Media Library. Once you are done with the image uploads, click on the Save All Changes button and you will be returned to your Edit Background screen.

To include an image from your Media Library, click on the Media Library tab. Once you have selected an image that you want, click on the Insert into Post button. This will insert the image into your background object.

shiba-custom-theme3b

shiba-custom-theme3

Note – An image can only be inserted into ONE background object. If you insert an already attached image to a new background object, the previous attachment will be removed. This also applies to post attachments. I.e., if you attach an image to a background object, its previous post attachment (if any) will also be replaced.

This is because an image/attachment can only be attached to ONE parent object at a time.

After adding background image.
After adding background image.

4. Position Background Images

Background images are positioned relative to a div container of your choice. Pick the container that encapsulates the main content of your blog. This is generally the content div in most WordPress themes.

Setting the anchor container to 'content'.
Setting the anchor container to 'content'.

Setting your background container to content will anchor all your background images to it, so that when you resize your browser window, all background images will move in relation to your blog content.

Try to use JPG images as much as possible to save on load time. A transparent PNG may add a nice touch from time to time, but they are much larger in size and will increase page load time.

The Allow Overflow option enables your background images to expand beyond their parent container. Checking this option will give your background a more continuous look.

5. All Done!

Now you are all done with your background object – time to show-off your awesome new WordPress theme design!

You may assign your new background object to posts, pages, tags, or categories. There should be a new drop-down menu in Edit Post, Edit Page, Edit Tag, and Edit Category that allows you to do this. Simply select the background object of your choice and update your post, page, tag, or category object.

You may also assign a background object to your entire blog.

define('SHIBA_BACKGROUND_DEFAULT', <background object id>);

Just insert the definition above into your main WordPress theme functions.php file.

With the Shiba Custom Background Plugin, you can easily create compelling, personalized, and unique backgrounds for your WordPress blog. Have fun creating new backgrounds and share some of your results with us!

All your WordPress theme are belong to us!

Shiba Custom Background Updates

Shiba Backgrounds Release 1.4

April 22nd, 2011

  • Updated plugin for WordPress 3.1. Plugin also works in WordPress multisite mode.

Shiba Backgrounds 1.2

July 13th, 2010

  • Updated plugin for WordPress 3.0. Plugin also works in WordPress multisite mode.
  • Background objects now use custom post types and taxonomy meta-data tables. This creates a cleaner and more secure interface.
  • Cleaned up PHP notices.

Shiba Backgrounds 1.1

April 5th, 2010

  • Added ability to remove default theme background images.
  • Added ability to specify an ignore div list.
  • All plugin functions are now encapsulated within a wrapper class.
  • Plugin is more modular and more secure.

How to Get Shiba Backgrounds Plugin

Related Articles

Example Thematic Background

This page uses the Thematic theme on a black background. All page design elements are set through the Shiba Custom Background Plugin. 1. Assign Theme Colors This example uses a dark background to illustrate the range of design options you have available, all from your WordPress dashboard, and without any PHP or CSS coding. Note however that different themes will be more or less customizable. Framework themes such as Thematic, Hybrid, Sandbox and others will be more easy to customize [...]

Twenty Ten Unleashed!

There are many new features in WordPress 3.0, and one of them is the new spiffy Twenty Ten default WordPress Theme. Twenty Ten is a great theme that you can have a lot of fun with. Here we build a variety of different looks for Twenty Ten using the Shiba Custom Background plugin. The Shiba Custom Background plugin simplifies the task of customizing WordPress themes by providing a simple interface for customizing theme colors and positioning theme background images. You can create many [...]

WordPress Custom Backgrounds 1.1

The Shiba Custom Background Plugin lets you customize virtually any WordPress theme by adding in your own background images and colors right from your WordPress Dashboard. You may create as many backgrounds as you want, and assign them to posts, categories, or to your entire blog. This blog post, for example, uses the Custom Background plugin on the default Kubrick theme. Here are more custom background examples - Example Thematic background. Example Twenty Ten background. [Here is [...]

Comments

  1. Curtis F says

    July 27, 2012 at 8:02 pm

    Awesome plugin! I am having a problem with WP version 3.4.1 though. When I try to edit the background object and then upload a background image, I get a page that just says…

    Cheatin’ uh?

    I had the same problem with the theme options panel of my premium theme but the theme developer had a solution that worked for that part. I am still getting the error with your plugin though. Your help will be greatly appreciated. I desperately need help fixing this problem ASAP for a client on a deadline.

    Reply
    • ShibaShake says

      August 1, 2012 at 7:18 am

      I am starting to work on updating my plugins for 3.4 but it will take a while to go through them all.

      Cheatin’uh? issue has to do with additional checks that have been put into the media library pop-up and media-library >> New menus, in particular to the post_id that is passed in. I have been using the post_id to act as a context variable, and that is no longer allowed. I will post something when I find a good fix.

      Reply
  2. Blindheit says

    April 15, 2012 at 8:22 am

    Hi,
    it’s a excellent plugin. But he would be very interesting to can fix the background.

    It’s planned ?

    Best regards.

    Reply
    • ShibaShake says

      April 15, 2012 at 7:07 pm

      That is a good idea. I have been on a break from WP programming though. Not sure when I will get back to it.

      Reply
  3. Kevin says

    November 12, 2011 at 4:09 pm

    Hi,
    This is an excellent plug-in Ms Shiba. I have one question though;
    I want to create a background using a narrow gradient that is attached to the bottom of all the pages and have it automatically repeat horizontally. It that a setting somewhere or do I need to change the php? Sorry if this has already been asked elsewhere – looked but couldn’t find the answer.
    Thanks, Kevin

    Reply
    • ShibaShake says

      November 22, 2011 at 11:22 am

      Hmmm, sounds like it would be easier to just create a child theme and insert that into the theme template.

      Reply
  4. datta says

    September 2, 2011 at 10:44 pm

    HI,
    how i change the position of backgraound image
    i have small background image i need to set it where i want

    Reply
    • ShibaShake says

      September 7, 2011 at 10:43 am

      Check out Section 4 of the article above (Position Background Images). Let me know if there are parts that are confusing and I will try to rewrite.

      Reply
  5. marie says

    June 28, 2011 at 12:25 pm

    this plugin does not show up in plugin search in wordpress…can you help

    Reply
    • ShibaShake says

      June 28, 2011 at 2:14 pm

      This plugin is not in the wordpress.org directory, so it won’t show up. If you want to install it, you will need to first download the zip from one of the download links.

      Then on the Plugins page do Add New and Upload.

      It is best to try things out on a test site first.

      Reply
  6. Marie says

    June 26, 2011 at 8:39 am

    Hi there..
    well stumped at stage one…i installed the plugin but in my media bar on the left i have no create background option in there…any ideas.. i have the latest version of wp and the theme is sliding doors by wayne connor…helps appreciated…if you can email me about it that would be great thanks

    Reply
    • ShibaShake says

      June 28, 2011 at 9:36 am

      Hello Marie,
      There should be a “Backgrounds” tab on your Dashboard that allows you to create new backgrounds.

      Reply
  7. Lola says

    March 16, 2011 at 2:31 am

    Hello
    I used your plugin to manage differents images background on differents pages. I put it on the content, and except footer. but I wonder if it was possible to resize images automatically with the navigator and resolution of the visitor. It seems to work on your site but on mine it doesn’t. can you help me please.

    Reply
    • lola says

      March 18, 2011 at 8:19 am

      Any idea

      Reply
      • lola says

        March 18, 2011 at 8:25 am

        excuse me I’ve not finished my sentence. I try to put some javascript like bgMax.min.js on my theme and call it on my header. But it doesn’t work. Maybe I have to call it from shiba-custom-background.php, but I’m not sure and affraid to do a big mistake and to break everything. Do you know if it is possible to do so ? It will be very nice if you can help me.

        Reply
        • ShibaShake says

          March 18, 2011 at 3:23 pm

          Hello Lola,
          One way to do what you want is to expand your theme functions.php file or even better to create a child theme.

          Check out the wp_enqueue_script command in the WordPress Codex –
          http://codex.wordpress.org/Function_Reference/wp_enqueue_script

          There are examples in there that show how to include js scripts into your theme.

          Reply
    • ShibaShake says

      March 18, 2011 at 12:53 pm

      If you give me a link to your site I can have a look at it and get a better idea of what the issue is.

      Reply
  8. Paul says

    March 7, 2011 at 4:32 pm

    got this error
    Warning: include(edit-attachment-rows.php) [function.include]: failed to open stream: No such file or directory in C:\wamp\www\test\wp-content\plugins\shiba-custom-background\shiba-bg-admin-3-0.php on line 422

    Reply
    • ShibaShake says

      March 7, 2011 at 4:39 pm

      Currently, the plugin does not work on 3.1. I am working on an update.
      http://shibashake.com/wordpress-theme/shiba-plugins-and-wordpress-3-1

      Reply
  9. Kitty says

    December 6, 2010 at 7:26 am

    Did you find a resolution on the category bug? To remind you see the post july 28th.

    Can you attach backgrounds to posts and pages? pages – YES
    Can you attach backgrounds to blog-wide conditions – under Backgrounds >> Options? haven’t tried that one!
    Can you attach backgrounds to tags? haven’t tried that one!

    Reply
    • ShibaShake says

      December 6, 2010 at 8:58 pm

      It should be fixed in the latest patch – 1.3.3. Let me know how it goes.

      Reply
      • Kitty says

        December 6, 2010 at 11:49 pm

        OK, great. But where to find it? I see I have version 1.3.2, any way to update it from the admin area? Thank you for the quick reply! Awesome stuff you do! 🙂

        Reply
        • ShibaShake says

          December 7, 2010 at 8:21 am

          To update –
          1. Download the plugin zip.
          http://shibashake.com/wordpress-theme/shiba-custom-background.zip
          2. Delete the plugin.
          3. Reinstall the plugin from the new zip.

          Reply
          • Kitty says

            December 7, 2010 at 11:51 pm

            Sorry, but nothing inside the zip….

          • ShibaShake says

            December 8, 2010 at 7:46 am

            Not sure what the problem is. I just download the zip and tested the install on my 2.9 setup and it seems to work. Maybe the download got interrupted?

          • Kitty says

            December 9, 2010 at 12:29 am

            Ok, thank you! I got the download. After install it still has 1.3.2 versjon spec and I get a serious error: Warning: require(/home/2/s/sirex/www/testsite/wp-content/plugins/shiba-custom-background/shiba-bg-general.php) [function.require]: failed to open stream: No such file or directory in /home/2/s/sirex/www/testsite/wp-content/plugins/shiba-custom-background 4/shiba-custom-background.php on line 70. Gues there is a line missing? Tried to replace the 2 files with the ones I got from before, but it didn’t do the trick. Installed the whole first versjon and everything is back to previous state.
            Still no categories showing background…

          • ShibaShake says

            December 9, 2010 at 8:27 am

            Hmmm, that is strange. My guess is the previous version didn’t fully get uninstalled. Did you get any errors during installation? One thing you can try is to manually delete the ‘shiba-custom-background’ directory before reinstalling the new zip.

            I can probably go take a look if you give me a temporary account with admin privileges. You can send account information to –
            http://hubpages.com/_srec/email/user/shibashake

          • Kitty says

            December 10, 2010 at 12:09 am

            Hi again, thank you very much but it was actually my mistake, of course I had a duplicate of the folder so the named was wrong, that’s why it didn’t find the file… anyway, still version 1.3.2… any other ideas?

          • Kitty says

            December 10, 2010 at 12:32 am

            Do you maybe have a snippet code I can put into the functions-file? Tahnk you for your help!

          • ShibaShake says

            December 10, 2010 at 8:39 am

            Here is what you can do –
            1. Edit the shiba-custom-background.php file.
            2. Look for funtion init()
            3. Put in the two lines below right after the function init() { line –

            global $wpdb;
            $wpdb->shiba_termmeta = $wpdb->prefix . 'shiba_termmeta';
            

            4. Save the file.

          • Kitty says

            December 13, 2010 at 7:59 am

            Thank you so much!! That totally did it! Great! 🙂 really pleased and happy! You rock!

  10. John says

    October 8, 2010 at 10:39 pm

    Unfortunately I’m not getting anywhere. I love how your examples are looking but unfortunately, I think because I have the site url different from the WP directory (i.e. blog.com loads content from blog.com/wordpress) nothing is connecting and I just get 404s.

    Reply
    • ShibaShake says

      October 9, 2010 at 9:56 am

      Hey John,
      If you want, I can have a look at it. Just set me up with a temporary account on your test blog. You can mail the account information to –
      http://hubpages.com/_brec/email/user/shibashake

      Reply
  11. Steve says

    October 5, 2010 at 12:48 pm

    Hello!! thank’s for the plug in.
    I can’t put an image as my background ( why ) i can upload but that’s it.
    how can i assign one image to my background ?

    Reply
    • ShibaShake says

      October 7, 2010 at 8:00 am

      Hello Steve,

      1. In general, after you load in the background, it should appear at the bottom of the Edit Background screen.
      2. Then when you click on the Position Images button, it should pop-up a theme Preview window where you can position the images.
      3. After positioning the images, click on the Save Background Positions link at the top of the pop-up.
      4. This will close the pop-up and put you back in the Edit Background screen.
      5. Click on the Update/Save button up top.

      Try clicking on View Background button up top and see what you get.

      Reply
  12. Rhonda says

    September 22, 2010 at 4:56 pm

    The plugin will not allow me to “add new” background images. When I click on the “add new” button it does not bring up the upload window layer. Is there a setting I need to change in WP to make this work, please? Thank you.

    Reply
    • ShibaShake says

      September 23, 2010 at 10:06 am

      Hmmm, there probably is an issue or conflict with the thickbox javascript.

      It is probably cleaner not to have the pop-up anyway, so I have removed it from the plugin. It now uses the standard download new image screen instead. Try reinstalling the plugin and see how it goes.

      Reply
      • Rhonda says

        September 23, 2010 at 8:13 pm

        Ok – now the upload of new images works – cool.

        BUT… I’m confused… when you upload a new image it automatically creates an “auto draft” and attaches the image to that draft…

        AND… when you go to “Backgrounds” in the plugin it says “no backgrounds found”…

        When you go to media library and click on the auto draft it created, that opens the page to cusomize pallette/background options/backgroun images…

        When you go to a page and click on the background dropdown the only option is “none”…

        LOL… it’s late, I’m tired. I’ll go at this again tomorrow. Apparently I need to re-read your instructions and practice with this a bit.

        Thank you very much for fixing the upload issue! Good job!

        Signing off for tonight,
        Rhon-duhhh

        Reply
        • ShibaShake says

          September 23, 2010 at 9:21 pm

          Try doing the following –
          1. Click on Backgrounds on your dashboard.
          2. Click on Add New.
          3. Type in a name for your background and hit Publish.
          4. After you publish or save your background click on the Add New image button in the Edit Background screen.
          5. Add in all background images.
          6. After you are done adding images, click on Backgrounds. It should now list the new background you just created.
          7. Click on the Background to edit it – and it should now show all the images you added.

          Reply
  13. Joe says

    August 26, 2010 at 12:30 am

    Darn,

    hoipe it works now without brackets

    body class=custom style=position: relative , min-height:0pt; overflow: visible;

    this is where my little css does its magic

    thanks again

    Joe

    Reply
  14. Joe says

    August 26, 2010 at 12:23 am

    Hi there,

    I run into a little problem, I am using wordpress 3.01 and the framework thesis, Your plugin installs without any problem and works almost out of the box.

    Before using your plugin I would change the background using this little css trick :

    body.custom { background: #8db6b6 url(‘background/bg-top-1.jpg’) 50% 0 no-repeat; background-attachment: fixed;}

    That works immediately because the css changes the
    I would really love to “attach” your code also to the body.custom, my css code fixes the background into position and with the 50% and 0 the background always stays centered no matter what the screen resolution is,

    can you pls help me with that ?

    best regards

    Joe

    Reply
    • ShibaShake says

      August 26, 2010 at 9:18 am

      I am not sure what your end goal is. Do you want to just add one background in fixed position? If so, I would use your old method for adding backgrounds, and use the plugin just for changing colors.

      If you want to add the backgrounds to the body of your html page, then open up shiba-custom-background.php and look for

      content.append(newBg);
      

      Replace it with

      bodyObj.append(newBg);
      

      However, the plugin uses a series of absolute positioned divs to enable multiple background images, so fixed-attachments would probably cause strange results.

      Reply
      • Joe says

        August 26, 2010 at 11:22 am

        Hi,

        thanks for your answer, i love your plugin, I want to use tons of different background images which I have already prepared, so basically I am ready to go 😉

        The background images all have the same size,
        How and where do I incorporate the other css

        background: 50% 0 no-repeat;
        background-attachment: fixed;

        thanks for your patience

        best regards from La Palma

        Reply
        • ShibaShake says

          August 27, 2010 at 10:45 pm

          Hey Joe,
          The background divs all have the shiba-bg class attached to them so you can just add the CSS to the class. However,

          background-attachment: fixed;
           

          will not work as intended because the plugin utilizes a series of absolute positioned divs rather than a single background image attached to a div.

          Reply
  15. Chris says

    August 6, 2010 at 9:06 pm

    I am mystified by this.

    Nothing in the instructions you show exists, none of the screen shots you have are things that I can find. There is no update background button.

    So exactly how is this supposed to work???

    Chris

    Reply
    • ShibaShake says

      August 6, 2010 at 10:31 pm

      Is there a Backgrounds tab on the dashboard? If not, then the background custom post type is not getting created, probably because of some server environment conflict.

      Reply
  16. Furcifer says

    July 18, 2010 at 1:13 pm

    define(‘SHIBA_BACKGROUND_DEFAULT’, );

    Are you sure this is right? I just copied it into the functions file and it broke the site, all it gave me is a php error unexpected <

    Reply
    • ShibaShake says

      July 18, 2010 at 6:57 pm

      Hmmm you will have to replace <background object id> with the background id that you want to use as the default. For example,

      define(‘SHIBA_BACKGROUND_DEFAULT’, 3680);
      

      The list of object IDs should be shown on the main Backgrounds screen.

      On my to-do list is to let people set this option from a Dashboard menu rather than having to add PHP code.

      Reply
  17. Steve says

    July 1, 2010 at 3:52 pm

    website is not published yet. created a BG, selected it in Category, does not retain the value – defaults back to NONE. Please help. Using WP 3.0, with a mod of Tribal.

    Reply
    • ShibaShake says

      July 3, 2010 at 12:08 pm

      Hi Steve,
      I am currently working on updating the plugin for 3.0. It was last on my list so I am a bit late on this one. I will post something once I am done with the update.

      Reply
    • ShibaShake says

      July 13, 2010 at 9:52 am

      I have just finished updating the plugin for 3.0. Please let me know if you encounter any bugs or issues.

      Apologies for the delay.

      Reply
      • Steve says

        July 28, 2010 at 9:46 am

        Thanks for the update. However, the Category selection bug still remains as described above. Granted, this is not a clean install, so I will try it on another development project. But at this point, selecting a BG for a Category reverts back to None, no matter what. – Steve

        Reply
        • ShibaShake says

          July 29, 2010 at 7:52 am

          I am having problems duplicating the bug.

          Can you attach backgrounds to posts and pages?
          Can you attach backgrounds to blog-wide conditions – under Backgrounds >> Options?
          Can you attach backgrounds to tags?

          The only thing that comes to mind is that there was some issue while creating the term meta-table. The plugin creates a new table called wp_shiba_termmeta to store metadata associated with categories and tags.

          If you are comfortable with it, can you check on your server to see if this table exists? Thanks.

          Reply
          • KR says

            October 12, 2010 at 3:32 am

            I´ve got the same problem. Whenever I choose a BG for a category it returns to “None” after saving. It works great on posts or pages! I took a look into the db – the wp_shiba_termmeta – table exists, however, its still empty. So maybe the bug is located somewhere around the insert data to database function?
            So, do you think you find the time to fix that bug or give me some support to fix it on my own? (I have to use WP 2.9)
            Thanks a lot!

  18. ShibaShake says

    April 5, 2010 at 4:39 pm

    Shawn & Fabrice,

    I have fixed the color bugs that you describe in the new version of the plugin. Also added some new features –
    http://www.shibashake.com/wordpress-theme/wordpress-custom-backgrounds-1-1

    I was not able to test it out on the Contrast theme since it is a purchased theme. The theme does contain a lot of specialized design elements though – so some of the plugin colors, in particular text colors may not get applied by the theme.

    Also apologies to Shawn for not looking into the bugs sooner.

    Please let me know if you run into more bugs or issues. Thanks.

    Reply
  19. ShibaShake says

    March 28, 2010 at 1:26 pm

    Hello Fabrice,

    I am looking into it now. Can you let me know what theme you are using?
    Thx.

    Reply
    • Fabrice says

      March 29, 2010 at 11:09 am

      Hello, thanks for your answer.
      Yes shure the theme used is http://themeforest.net/item/contrast/68089
      I wanted to use your plugin to be able to set the different colors for the content background, text font, etc..
      So I tried into the admin defining some colours, but after I hit the button “update background” , my background name is saved but it seems that the settings are not saved. (When I come back to it, I can’t see the preview with the right colours).

      Reply
  20. ShibaShake says

    March 12, 2010 at 8:19 pm

    Hi Shawn,

    probably a bug with using wpmu?

    That would be my guess. I am not familiar with the innards of WPMU and how it differs from regular WP so I am not exactly sure where the issue is. Perhaps sometime in the future I will look into WPMU.

    how would I go about assigning a background to the body tag for a given category?

    You would need to edit the plugin for that. Look for the line –

    var content = jQuery('#<?php echo $bg_attr[0];?>');
    

    in the file shiba-custom-background.php and replace it with –

    var content = jQuery('body');
    

    The issue with anchoring the background images to the body is that they will move around when the browser gets re-sized which is frequently not the desired result, especially for fixed width themes.

    Reply
  21. shawn says

    March 12, 2010 at 3:02 pm

    Interesting concept.

    I did try installing on my wpmu 2.9.2 system today, and it seemed to install correctly. I can get to the plugin settings.

    However, when I choose colors and then save background, the colors are not saved, and the default values return.

    I was able to create a new background image itself and it does appear in the listing.

    However, when I assign it to a category, the image does not show up, nor do the colors change.

    probably a bug with using wpmu?

    finally:
    how would I go about assigning a background to the body tag for a given category?

    Reply
    • Fabrice says

      March 28, 2010 at 3:10 am

      Hi,

      I got the same issue.. colors are not saved and the default values return.
      I am not using wpmu but standard WordPress updated with last version.
      Could you please help ?

      Thanks.

      Reply

Leave a Reply Cancel reply

Your email address will not be published.

Recent Posts

  • Screen-shot of mobile responsive Poll Daddy object, where text floats properly to the right of radio buttons.How to Make Poll Daddy Objects Mobile Responsive
  • Screen-shot of blog post with no page border (flowing design).Genesis Skins 1.5
  • Screen-shot of the media manager Create-Gallery screen, while doing a post search.Shiba Media Library 3.7
  • Screenshot of the Edit Gallery screen after we hit the Create Gallery button.How to Expand the WordPress Media Manager Interface
  • Blonde girl looking through and holding a circular picture frame.Shiba Gallery 4.3
  • Close-up of beautiful blonde holding a square picture frame.Google Authorship - Good or Bad for Search Traffic?
  • Shiba Widgets 2.0
  • Media Temple screenshot of editing my sub-domain DNS entry.Using CDN Cnames with w3tc and MultiSite
  • Shiba Skins WordPress ThemeShiba Skins WordPress Theme
  • How to add the Media Manager Menu to the Theme Preview InterfaceHow to Add the Media Manager Menu to the Theme Preview Interface

Recent Comments

  • WordPress Search Widget – How to Style It (56)
    • Nelson
      - Tanks master - Fine
    • TelFiRE
      - How do you style the "X" that shows up when you start typing?
  • Update custom inputs with the proper data using Javascript.Expand the WordPress Quick Edit Menu (58)
    • Mike G
      - This is exactly what is happening to me. It is updating the value in the database and in the column, but I have to refresh ...
    • PhoenixJP
      - Thanks for this tutorial. Does someone knows if this still work with wordpress 5.03 and 5.1.
    • Francine Carrel
      - This is a very long time away from your original comment, but did you ever work it out? I am stuck on the exact same thing ...
  • Custom meta-box with a set of radio-buttons.Add a Metabox to Your Custom Post Type Screen (27)
    • mike
      - Hi Shiba am a newbie to wordpress, I just installed a plugin with a custom post type, but has no option for discussion and ...
  • Write a Plugin for WordPress Multi-Site (45)
    • Andrew
      - Hi,action 'wpmu_new_blog' has been deprecated. Use ‘wp_insert_site’ instead.
  • Populate our Edit Gallery menu using a gallery shortcode.How to Add the WordPress 3.5 Media Manager Interface – Part 2 (29)
    • Janine
      - Still relevant in 2019.
  • WordPress Excerpt – How to Style It (36)
    • James
      - Great post. I really need some help. I have set border lines around my excerpts on my blog page/post page. The problem is ...
  • Add Custom Taxonomy Tags to Your WordPress Permalinks (123)
    • Darshan Saroya
      - Update permalinks. Go to settings > permalink and just save it.

Copyright © 2021 · Genesis Skins by ShibaShake · Terms of Service · Privacy Policy ·