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
21 views

Placing background image over section divider

I'm looking for a solution that will allow me to add an image that will sit over a section divider, but then be hidden behind the section its self. If you look at this section on the website you can ...
0
votes
1answer
18 views

How to change the background color that appears at top when we pull down a website on mobile device?

The website is https://samanthayardley.com/ In the top there is a bluish rectangle, that comes when we pull the site down to refresh. How can that color be changed?
0
votes
1answer
14 views

Inserting a background-image

I would like all my site pages to have a background-image, such as: body { background-image: url(https://5e97-e8af726b4e97.wptiger.fr/wp-content/themes/twentyseventeen/assets/images/header.jpg); ...
-1
votes
1answer
19 views

Change background image based on tags

I'm in a great need for little php script help. My dyslexia makes me dependent on already written scripts and help from others. I've found a site that has a short script that changes the background ...
0
votes
0answers
11 views

Structuring Nav Menu and Background Custom page (Help)

i´m creating theme is my first theme and i have a problem with panel nav menu of wordpress, I´m creating the order of nav menu in the panel wordpress and does not order, i was make page and ...
0
votes
1answer
30 views

I would like to set a FULL SCREEN background image to all my pages (same way it is on my home page)

hopefully you can help. My website: www.chromahouse.com I am trying to set a full screen background image to a number of specific pages (about 5-6 other pages) The link to the image I want to use: ...
0
votes
2answers
50 views

Custom Background by Page IDs

I use TwentyTwent theme and want to change its background colour by page IDs. I'm not sure but when I check the functions.php, I see below lines which are related to background colours: // ...
0
votes
0answers
12 views

How to add backgroundimage to blog as well?

First time poster here. I have the following page. [https://wellbeing-works.ch][1]. As you can see the background image (lake with mountains) appears on every page, except the blog page. As I can no ...
0
votes
1answer
25 views

How to change background image

I am new to wordpress and although searched all over I cannot seem to find an answer for my question so any help would be appreciated: I have the following code: [vc_row row_type="parallax" ...
0
votes
1answer
84 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
1answer
36 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
111 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
74 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
52 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
123 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
135 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
815 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
1answer
507 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 ...
1
vote
0answers
44 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
556 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
3k 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
70 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
27 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
4k 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 ...
0
votes
2answers
601 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. ...
0
votes
1answer
460 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
806 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
1answer
166 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
22 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
81 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 ...
0
votes
2answers
533 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
42 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 '...
3
votes
2answers
179 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
1answer
31 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
116 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
258 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 ...
0
votes
0answers
213 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 ...
-1
votes
1answer
428 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
1answer
407 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 ...
1
vote
1answer
986 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
926 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
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 ...
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
421 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
1answer
949 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
0answers
133 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
445 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
2answers
116 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
299 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, #...