Title: Adding Background Image to Custom Page
Last modified: August 21, 2016

---

# Adding Background Image to Custom Page

 *  Resolved [peterk900](https://wordpress.org/support/users/peterk900/)
 * (@peterk900)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/adding-background-image-to-custom-page/)
 * I have created a custom full width page:
 *     ```
       <div id="primary">
       	<div id="content-fullwidthbg1" role="main">
       		<?php while ( have_posts() ) : the_post(); ?>
       '
       And added the following .css
       ```
   
 * #content-fullwidthbg1 .entry-content {
    width: 100%; background-image: url(‘wp-
   content/uploads/2014/04/c2.jpg’); background-position: center center; background-
   repeat: no-repeat; } ` But the page displays without any image. The css is certainly
   working because the page displays full width.
 * I’ve checked that the image url is correct !
 * Here is the url [](http://www.marionandpeter.com/group200/?page_id=130)
 * Any ideas please ?

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [bravokeyl](https://wordpress.org/support/users/bravokeyl/)
 * (@bravokeyl)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/adding-background-image-to-custom-page/#post-4802114)
 * Background-url linking is wrong,
    use absolute path
 * Like this:
 *     ```
       #content-bg1fullwidth .entry-content {
       width: 100%;
       background-image: url('http://www.marionandpeter.com/group200/wp-content/uploads/2014/04/c2.jpg');
       background-position: center center;
       background-repeat: no-repeat;
       }
       ```
   
 *  Thread Starter [peterk900](https://wordpress.org/support/users/peterk900/)
 * (@peterk900)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/adding-background-image-to-custom-page/#post-4802202)
 * Thanks so much for solving this. Brilliant !

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Adding Background Image to Custom Page’ is closed to new replies.

## Tags

 * ["background-image"](https://wordpress.org/support/topic-tag/background-image/)

 * 2 replies
 * 2 participants
 * Last reply from: [peterk900](https://wordpress.org/support/users/peterk900/)
 * Last activity: [12 years, 1 month ago](https://wordpress.org/support/topic/adding-background-image-to-custom-page/#post-4802202)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
