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.
89
questions
0
votes
0
answers
9
views
How to erase space above menu bar? Or just erase "first row" entirely
Summary: The space above the menu and at the end of the website cannot be erased. I use theme Blocksy. Now the menu is not attached to the top.enter image description here
Question: Do you know how to ...
0
votes
0
answers
16
views
background not fixed and scaled on iPhone (but working on every other device)
🙂
I have designed a website using Twenty Twenty-One and I'm quite satisfied with it. The website is https://www.coldsilence.de.
Here, I specifically wanted to achieve two backgrounds, one for mobile ...
1
vote
0
answers
18
views
Custom background not showing
I'm writing my own theme and i have a problem with body background
My code in functions.php
if (! function_exists('anime_quotes_setup')){
function anime_quotes_setup(){
add_theme_support( 'custom-...
0
votes
0
answers
17
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 ...
3
votes
1
answer
112
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&...
0
votes
1
answer
381
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 ...
3
votes
2
answers
320
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 ...
0
votes
1
answer
3k
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
0
votes
1
answer
941
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
1
answer
1k
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
1
answer
54
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
1
answer
90
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
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 ...
0
votes
1
answer
46
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
2
answers
233
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
1
answer
99
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
1
answer
525
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
1
answer
42
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
2
answers
245
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
0
answers
167
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
1
answer
343
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
1
answer
648
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
1
answer
966
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
1
answer
638
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
0
answers
46
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
0
answers
750
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
3
answers
4k
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
1
answer
79
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
1
answer
31
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
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 ...
0
votes
2
answers
962
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
1
answer
756
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
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, ...
0
votes
1
answer
231
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
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 ...
1
vote
2
answers
84
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
2
answers
719
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
1
answer
81
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
2
answers
227
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
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 ...
0
votes
1
answer
127
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
1
answer
330
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
0
answers
241
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
1
answer
582
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
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 ...
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 ...
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 ...
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;...
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 ...
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 ...