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
0 answers
15 views

Background image no longer fits to screen now that project is in php files

When my project was still coded as html files, the background images of my sections of my landing page fit the screen, but since changing it to php files to upload to wordpress these sections leave ...
user avatar
3 votes
0 answers
57 views

@wordpress/create-block image url in css

how to include image URL to css "style.css" in custom block? Both these not work: background-image: url("images/imagename.png"); background-image: url("./images/imagename.png&...
user avatar
  • 31
0 votes
1 answer
102 views

Fullscreen Page Background without Plugin [closed]

I am using the Advanced Layout builder for editing pages in the Enfold theme. I've seen many solutions via code editing or plugin additions, but I am behind a controlled environment and do not have ...
user avatar
  • 1
3 votes
2 answers
114 views

FireFox Inspector :: find CSS file related to <div>

I'm creating my new website and I would like to change the background colour. Through FireFox Inspector I nailed the CSS line that manages the colour, it's background-color: #fff; I now have to ...
user avatar
0 votes
1 answer
2k views

change with CSS the color of an svg background image set with "background-image: url()"

does anyone knows if it is possible to change the color (the stroke and fill attributes) of a SVG illustration used as a background with background-image: url() directly via CSS? Thank you
user avatar
  • 25
0 votes
1 answer
518 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 ...
user avatar
0 votes
1 answer
339 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?
user avatar
  • 103
0 votes
1 answer
26 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); ...
user avatar
-1 votes
1 answer
37 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 ...
user avatar
  • 151
0 votes
0 answers
27 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 ...
user avatar
  • 1
0 votes
1 answer
41 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: ...
user avatar
0 votes
2 answers
166 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: // ...
user avatar
0 votes
1 answer
63 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" ...
user avatar
  • 103
0 votes
1 answer
412 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 ...
user avatar
0 votes
1 answer
41 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 ...
user avatar
  • 33
0 votes
2 answers
220 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' => ...
user avatar
0 votes
0 answers
139 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 ...
user avatar
  • 995
0 votes
0 answers
87 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.
user avatar
0 votes
1 answer
294 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 ...
user avatar
0 votes
1 answer
382 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 ...
user avatar
-1 votes
1 answer
951 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 ....
user avatar
  • 3
0 votes
1 answer
614 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 ...
user avatar
1 vote
0 answers
45 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' =...
user avatar
  • 23
1 vote
0 answers
687 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 ...
user avatar
  • 133
1 vote
3 answers
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%, ...
user avatar
0 votes
1 answer
77 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 ...
user avatar
-1 votes
1 answer
30 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 ...
user avatar
  • 3
2 votes
1 answer
5k 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 ...
user avatar
0 votes
2 answers
917 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. ...
user avatar
0 votes
1 answer
726 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 ...
user avatar
0 votes
1 answer
1k 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, ...
user avatar
0 votes
1 answer
209 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 ...
user avatar
0 votes
1 answer
28 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 ...
user avatar
1 vote
2 answers
83 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 ...
user avatar
0 votes
2 answers
646 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'...
user avatar
  • 133
0 votes
1 answer
58 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 '...
user avatar
  • 307
3 votes
2 answers
223 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 ...
user avatar
  • 307
0 votes
1 answer
37 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 ...
user avatar
0 votes
1 answer
126 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?
user avatar
0 votes
1 answer
313 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 ...
user avatar
0 votes
0 answers
236 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 ...
user avatar
-1 votes
1 answer
565 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 ...
user avatar
2 votes
3 answers
2k 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 ...
user avatar
  • 118
0 votes
1 answer
411 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 ...
user avatar
  • 355
1 vote
1 answer
1k 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 ...
user avatar
0 votes
1 answer
1k 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;...
user avatar
  • 145
0 votes
1 answer
4k 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 ...
user avatar
  • 353
4 votes
1 answer
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 ...
user avatar
0 votes
1 answer
476 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-...
user avatar
  • 3
0 votes
1 answer
998 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 ...
user avatar