Is it possible to add a different background for each section in the navigation? I am transferring a website that I did for someone ages ago into wordpress.
OLD SITE:http://www.dahliadrive.com/
NEW SITE: http://dev1.randomlink.com/?page_id=292
Is it possible to add a different background for each section in the navigation? I am transferring a website that I did for someone ages ago into wordpress.
OLD SITE:http://www.dahliadrive.com/
NEW SITE: http://dev1.randomlink.com/?page_id=292
I'm bumping this again. I want to have different backgrounds for each section like on this site: http://www.dahliadrive.com/
The Bigfeature site in development is here: http://dev1.randomlink.com/
this will be possible in the new version of the theme (coming soon I hope) since I have added body classes. then you can target categories/pages etc. with custom css.
I'm wondering if for now I can just put some code in my stylesheet (I am using a child theme). If so what code would I use?
Thanks again
If that is not possible I am thinking I could just add an image to my posts on each page but if I do that I need to make the container margin 0 so the graphic butts up against the border which I cannot find anywhere. Is this also possible?
@Lara: There's a way to do this until it's implemented into the theme. In your bigfeature folder, copy/paste into the header.php file. The code creates a custom body class, based on the page name. See it in action here.
</head>
<!-- begin dynamic body class -->
<?php if (is_home()) { ?>
<body class="">
<?php } else { ?>
<body class="<?php echo $post->post_name; ?>">
<?php } ?>
<!-- end dynamic body class -->
<?php bf_top(); ?>
In your theme (or child theme CSS), add this code below to target different pages and/or the container:
/* Background image for an About page */
html body.about {
background: url (images/bg-somefilename.png);
}
/* Background image for a Contact page */
html body.contact {
background: url (images/bg-someimage.png);
}
/* Background image for a Contact page - targeting the container */
html body.contact #container {
background: url (images/bg-someimage.png");
padding-top: 0;
}
Hello.
Thanks so much for taking the time to help!!! I tried this as you suggested and the background still doesn't show up (See screengrabs of what I did below). Perhaps I am missing the obvious ;) Do you see what I am doing wrong? Thanks a million.
Background: http://dev1.randomlink.com/wp-content/themes/topart/images/BG_inspiration.jpg
Header.php: http://dev1.randomlink.com/wp-content/themes/topart/images/example1.jpg
Style.css (in the topart theme): http://dev1.randomlink.com/wp-content/themes/topart/images/example2.jpg
You just need to remove some duplicate code in header.php. Remove this:
<body>
<?php bf_top(); ?>
Thank You Illusio and vxdude
You must log in to post.