Questions tagged [custom-background]

The custom background is a WP feature that gives special support to backgrounds on the body tag. To use this feature it must be activated in the theme.

Filter by
Sorted by
Tagged with
0
votes
1answer
1k views

How to change the background color of my header dynamically based on a Custom Posts types color value?

I've been able to figure out how to include the custom field i'm referencing within an inline style within a div that wraps my header. The problem is that it's in my header and so when a particular ...
2
votes
2answers
12k views

How to customize a divs background dynamically using Advanced Custom Fields Plugin?

I've gotten as far as creating custom post types, custom fields and linking those to templates on this first time WordPress project i'm working on, but i seem to have run into a problem i'm not easily ...
2
votes
1answer
767 views

Is this possible to attach the background image to a div instead of body?

Currently, adding a custom background image via WordPress will attach it to the <body>. Is there a hook to tell WordPress to attach the background image to another element? Instead of having ...
0
votes
1answer
1k views

Random home page background images with caption text

all. I am developing a Wordpress theme and I need to have a random background image display on the home page with specific text for each image. I have installed the Background Manager plugin (http://...
0
votes
1answer
302 views

Problems Replacing Background Color with Static Background Image in Responsive Design

I'm new here. I've tried the WordPress forums and the actual theme forum for my theme with no luck and I heard that this is a good place to come ask questions. I'm hoping someone out there will take ...
0
votes
1answer
541 views

Get background color for Live Preview with Theme Customization API?

This could very well be a stupid question, but I'm working on a WordPress theme (check the link to see what I'm talking about, then read on)... You'll see the Post Formats icons are surrounded by a ...
4
votes
1answer
572 views

How to get attachment id of background image?

I'm looking for a way to get the ID of the background_image when I am using custom headers? I tired using url_to_postid like this: $url = get_header_image() $postid = url_to_postid( $url ); and ...
0
votes
2answers
4k views

I can't change the body background-color through style.css

Using a child of Twenty Twelve, I've been adding color to all the major containers (#main, #content, #secondary, etc.) using #arbitrary-id { background-color: #dedede; } This works for everything ...
4
votes
1answer
11k views

Change background color with a dominant from picture

Im looking for a smart way to change the background color for a page, but taking the #xxxxxx value from the dominant color of the headline picture. In twenty eleven theme, I can set a random image ...
0
votes
1answer
133 views

Post interior margin in twenty eleven theme

I'm trying to customize the aspect of a single format post, in my case is "Link". I've added a different color background so they look different, editing the CSS as this: .format-link .entry-content {...
0
votes
2answers
2k views

Display background color or image with custom meta box?

With custom meta boxes, how would I go about displaying the background image (or color if no image is linked) within the page. Code for the page where I want data to displayed. I want to apply the ...
0
votes
1answer
546 views

default custom background image not saved in database when creating a new site

I am a theme author and the theme I made is used in a multisite environment. I have added the custom_background feature to this theme, with a default image and everything works as expected : the user ...
1
vote
1answer
4k views

How to remove custom background?

I'm using WordPress 3.5.1 and twentyten. I want to remove the support for custom background. I found this text: http://codex.wordpress.org/Function_Reference/remove_custom_background but i'm a ...
0
votes
1answer
108 views

Custom Background: Can't Set Color Default

I'm using the standard WP Custom Backgrounds feature, however, the color is defaulting to #166b4c and I'm unsure why. #166b4c does not appear in my stylesheet. Below is my code. ...
4
votes
1answer
2k views

How WP_Customize_Background_Image_Control is supposed to work?

I'm trying to add a second background image function to my theme customizer with this code. // HTML Background Image $wp_customize->add_setting( 'html_background_image', array( ...
0
votes
1answer
1k views

How to insert a clickable and fixed background [duplicate]

Possible Duplicate: How to fix clickable background with Wordpress theme and CSS I have a problem using a clickable adverting skin as background of my website. My site is this: http://www....
0
votes
1answer
398 views

Post to inherit custom category background image from parent

I have a custom field on a category where you can add an image. I have it as a background image to show on the category's archive page, like so: archives.php <body style="background:url('<?php ...
1
vote
1answer
427 views

Rotating background images with admin options

I recently saw an admin panel that had options to set background images for a page. The option was found on from clicking pages and then a "main page". Under the description was a form that allowed ...
0
votes
2answers
764 views

Custom header tiling?

I've been playing with the wp custom header and background options. I like the way you can tile a small image for the background, and looking for a way to add that option to the custom header image ...
0
votes
0answers
23 views

Custom background front page only ? is_front_page() issue? [duplicate]

Possible Duplicate: Custom background for the index page only? I need to get this right. What iam looking for is to change background image from wp-admin , for front page only. I get it work ...
2
votes
2answers
2k views

Custom background for the index page only?

I am stuck at add_custom_background. I can change background color/image but I only want to change my index page. Currently, the changes apply on the whole page. I want to make the changes from WP-...
1
vote
2answers
562 views

Implementing “Random” to custom-background

I have a client site that requires a random background image. I figured that custom-background would have something similar to custom-header for randomizing which image is selected, but alas it does ...
8
votes
2answers
1k views

How do I add settings to the Background Options Page?

I am developing a theme and I wanted to add some extra content to the built in background options page. I know how to use the settings API to create new theme options and settings but I can't seem to ...
0
votes
1answer
2k views

How to Disable Color Options?

This question is related to my earlier question, but I think it's specific enough to qualify as a standalone question. I am modifying an existing theme (the Twenty Ten theme that ships with WordPress)...
3
votes
2answers
984 views

Multiple Custom_Background, is it possible?

Is it possible to create multiple "custom background" administration pages? A site I'm doing now needs 2 different background in 2 different areas, I would really love giving my client the same ...