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.

0
votes
1answer
551 views

Section Background Images?

First time poster here... I'm creating a new site on the hosted Wordpress site with a friend. It's going to have each blog post divided into 4 'sections' (we're titling them: bramble, thorns, paths, ...
0
votes
2answers
427 views

Jumbotron not showing up on Firefox or Safari

I just want to start out by saying, that I have tried multiple things before I resorted to writing this entry. You guys are my only hope. My site works in Chrome, but disappears in Firefox or Safari. ...
1
vote
1answer
893 views

Background image not appearing

I'm trying to add a custom background on a child theme. In the child theme's functions.php, I add add_theme_support( 'custom-background'); and the background option appears under the "Appearance" menu ...
0
votes
1answer
16 views

Change background image page header overlay for each category

this is my site: http://styleofchamp.com/ and I'm trying to change the background image page header overlay for each category. I have been looking at many forums but I didn't get with the correct ...
0
votes
0answers
31 views

Ho to display author image dynamically as a background image?

On my puzzle website I would like to display author image on the post area as shown in the image below. The author image would be a background image. May I know how is this possible? Theme is using ...
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-...
0
votes
1answer
25 views

Add border/background color/color text of embedded pop-up [closed]

I have been trying in vain to give color to my subscription pop-up. I believe it must be something quite easy and straight-forward but, since I do not understand a thing about html, I really need your ...
0
votes
2answers
51 views

Is there any way to register custom background images like header images?

I wonder if there exists a quick way to register custom background images as simple as we do with the custom headers. $header_images = array( 'ferrari' => array( 'url' => ...
0
votes
0answers
32 views

Fetch customizer image and output as an inline css style background image

So I have a feeling this is quite simple, but Im a bone head since I'm still learning PHP as I hack away at themes via my own child-theming... In short, I've built a customizer section in my ...
0
votes
0answers
16 views

Setting multiple videos for the video background

Is there any way to include a video background that takes multiple self-hosted videos and play them one by one? Most of the plugins can play only one video for the background.
0
votes
1answer
845 views

override a css style [closed]

I have the following line in the original theme style.css file: background: none repeat scroll 0px 0px #CCC; In my child-theme.. I want to delete the "background: line.. But how? Update: OK to ...
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 ...
0
votes
1answer
62 views

Custom Background for each page and post

I've created a custom background metabox and was able to call it on multiple post types and posts. I have 2 issues need your help please. Is it possible to include also custom taxonomies and post ...
0
votes
1answer
67 views

Using featured img as div background

I have a full width/height header div that I want to use the featured image in, but I'm having trouble getting the div to load a default image if no featured image is set in a blog post. I figured I ...
-1
votes
1answer
558 views

how to change background color of my all post

The onetone theme I'm using is to have a white background for any post. how can i add post background color.admin can change background color of post . i had try installing some plugin but didnt work ....
0
votes
2answers
31k views

Change background image per page

I would like to have a different background image as per PAGE (category) When the user goes to the home.php, call it A, it shall have a background image, then if I send them to a page B, I would like ...
0
votes
1answer
366 views

Placing a background image with text over it

I'd like to place an image of a blueprint behind a section of text. Things I'm worried about: Image will be tiled Image will stretch weird Image will look bad on different screen resolutions What's ...
8
votes
2answers
41k views

featured image as background image on pages

I'm adding a featured image on my page through the dashboard and I want to use it as a background image on the container div of the page. I want to apply the background image through css, so I am ...
1
vote
0answers
41 views

Add Custom Background Properties to Customizer

I've just added a second background image upload with the intent of using in the footer: $wp_customize->add_setting( 'tcx_background_image', array( 'default' => '', 'transport' =...
1
vote
0answers
437 views

Custom Background not Appearing

I have a very simple theme to which I need to add custom-background support. When I go into appearance -> customize, I am able to select a background image. However, the background of the site ...
1
vote
3answers
2k views

How to handle a background-size: cover image in Wordpress?

Designer new to wordpress here. I want to take the featured image on a post and make it a hero image for the post single page. The way I would normally do this is to create a div, set width to 100%, ...
0
votes
1answer
68 views

Setting up Custom Background [closed]

I’m currently working on a website for educational purposes. I want all of my pages look like this one. As the background on the sides are made from image but the background for content is grey. I ...
-1
votes
1answer
24 views

background changed after Wordpress update

I recently updated Wordpress, and it seems to have affected the background images on my site. I had them set to take up the whole screen, but now they show up in their actual size (which is too small ...
2
votes
1answer
2k views

Custom Background-Image not showing up

I have added theme_support for my background-image and its showing up in the admin where I can set it and from there it looks as it should, but if i go to my website outside of the admin the ...
4
votes
1answer
2k views

Add custom background to div in home page

I want to have featured image on specific div on home page that could be changed in customizer. I saw in documentation custom background for body(https://codex.wordpress.org/Custom_Backgrounds) But I ...
0
votes
1answer
269 views

Add custom background to section in home page

To be clear : in Wordpress there is an option to change the body backgroung-image. I want to modify this option to permit to change the background-image of a particular section (named #section1) and ...
0
votes
1answer
147 views

Featured Image as Background with Offset

I have a custom Wp_Query in my header that displays the latest post and then a list of 10 posts below which are offset so not to include the recent post. I want to use the latest post's featured ...
0
votes
1answer
20 views

Blank/White on certain parts of pages

I am volunteering and helping with the website and for some reason, I cannot get the whites on certain pages to go black: http://www.remnant13.com/ How do I make it so that the white parts are all ...
1
vote
2answers
80 views

Weekly background code not working

I have this code I want to implement onto my website. I have successfully set up a child theme. This code is suppose to change the background every day of the week. I am not all too familiar with ...
3
votes
2answers
138 views

Display custom_background outside wp_head()

My theme is a very small one page theme which really doesn't need all the scripts, so I've created a few options to remove wp_head() and wp_footer() so the user can choose if they want to enable or ...
0
votes
2answers
464 views

Change Background Color For CPT Template

Please help. Anyone knows of the proper way how to change the background color for a custom post type template only? Using chrome's inspect, I saw that my theme uses the ID of "#main" for all the page'...
0
votes
1answer
33 views

Return value of get_background_color

I want to return the value of get_background_color but that value isn't showing up. <?php echo get_background_color(); ?> I have colors enabled in my customizer, and there is the option '...
0
votes
1answer
30 views

custom-background callback breaks media uploader

I've added theme support for a custom background/color along with a callback and it seems to be breaking my media uploader, as while the uploader box appears, uploads result in an error and image ...
0
votes
1answer
103 views

How to use WP Theme Option: Custom_Backgrounds on specific element?

I want to use the WP Theme option Custom_Backgrounds on a specific div. By default it adds it to the body and I dont see a way of changing this. Does anyone know how?
0
votes
1answer
217 views

Different body image backgrounds on different pages, posts and categories

I am trying to implement the ability to choose a different body background image to different posts, pages and categories. I am using Advanced Custom Fields to add an image field to every post, page ...
-1
votes
1answer
328 views

Featured image as background in a div using headway

I'm using Headway Theme (builder) and I've got static pages for products. On top of page is a wrapper that I'd like to use the featured image as background. Everything I've read is that I need to ...
2
votes
3answers
1k views

How to add background image control to page admin controls?

I understand that each page is assigned its own class such as .page-id-22 & I can use that to assign a background image to it using the stylesheet but I've seen a theme that adds a control to the ...
0
votes
0answers
189 views

Inline Styling a div from a Custom Metabox

I am building a custom page with repeatable metaboxes that controls content, images and background image. I am having issues when it comes to displaying the background image as an inline style. As of ...
0
votes
1answer
395 views

Featured image url

I'm trying to create a bootstrap carousel with the featured image as a background in a div. It works for the first post but the second post isn't loading the right background (it loads the one from ...
0
votes
1answer
736 views

add class to background image

I'm trying to make a wordpress theme, using as framework the twitter bootstrap. On one page template I need to use the featured image as a background image, so I used this code: <?php global $post;...
0
votes
2answers
115 views

background_image support multiple image size?

Does background_image support showing multiple image sizes like feature image? I can see multiple files were created when I uploaded a file. How do I use those images or does background_image not ...
0
votes
1answer
3k views

HowTo: develop WP template with dynamic background image

Is there a way to develop a WP template which, amongst others, sets the background image of a certain element dynamically by choice from admin backend? Think of an page editor who simply picks an ...
0
votes
1answer
363 views

Replaceing _custom_background_cb

I'm making a theme where I'm adding support for the custom background feature with this standar function: // fig. 1 <?php function custom_theme_support() { add_theme_support('custom-...
0
votes
0answers
129 views

Why, when it comes to custom background and image, does 'The first value registered' win?

I'm messing about with overriding parent themes by child themes. The parent theme registers custom backgrounds by hooking add_theme_support('custom-background',$args) to after_setup_theme. Now, if I ...
0
votes
1answer
434 views

Removing backstretch image from pages/posts

Homepage has a backstretch image which is also active throughout the site on posts and pages. How can I keep the backstretch on the homepage but hide it on posts or pages? pulled this from the ...
0
votes
1answer
295 views

Different background images on different sites [closed]

I use wordpress 4.0.5 and Minamaze Theme (https://wordpress.org/themes/minamaze) The Minamaze Theme gives me the opportunity to add custom CSS, without having to edit any files, so I added: body, #...
0
votes
2answers
480 views

Change the background of each post according to the category

I am using the Hueman Theme. What I want to do is that the background of all the posts should change according to the category of the post. Please suggest something
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

Custom Background default color not changing

I need to set several default states for a theme's background. The idea is that the background changes upon choosing a color scheme. Everything is working and changing EXCEPT the background color. The ...
0
votes
1answer
111 views

Random sidebar/widget background

Does anyone have a clever idea to get a random/changing background for just the widget sidebar?