custom theme with 2 background images
-
Hi all
I have a problem. I’m creating a custom theme. But I can’t seem to manage it in wordpress. I have a website in html and I’m converting it to wordpress. So far so good.
I have the style and menus working, I’m not entirely happy with the menu design have to fix that.
The website has 2 background images. One large, a wall and one small, peace of paper on that wall. All the text appears on that small peace of paper image. I have it working in html but for the live of me I can’t transcode it to wordpress.
I thought I use the small peace as background image in the single.php & page.php and the large as background image in the index.php.
I added the custom background in the functions. But I only got a white bg not the image.
//custom-background wall add_theme_support( 'custom-background' ); $defaults = array( 'default-image' => '%1$s/img/wall.gif', 'wp-head-callback' => '_custom_background_cb', 'admin-head-callback' => '', 'admin-preview-callback' => '' ); add_theme_support( 'custom-background', $defaults );
Then I thought I use <div style=”background-image: for the index.php. But nothing.
I think I’m missing something but I can’t figure it out…
- The topic ‘custom theme with 2 background images’ is closed to new replies.