[SOLVED] Styling my custom page template
WP: 3.4.2
ATA: 3.7.9 I have created a custom template by copying and renaming the index.php to sample.php. I know that to change the footer and/or header I would do the same thing with their respective php files as well. I did the following to change styling aspects of the main page: HTML Code:
body.page-template-sample-php { 1. what selector(s) would I use to change the center column background? 2. how am I supposed to alter (let's say) header2.php so that it contains only an image (no menu or anything else)? I do not really know any php so altering the actual code in the file is something i'm not too keen on trying. Any help is greatly appreciated. Thanks! |
Quote:
Quote:
Quote:
HTML Code:
body.page-template-xxxxxxxxx-php div#imagecontainer {background: url("http://yourdomain.com/wp-content/uploads/2012/07/cropped-dragonfly3.jpg") no-repeat scroll left top transparent !important;} |
Thanks JD! I have gotten that issue taken care of thanks to your help and some putzing around with the CSS.
I have come across another issue though. Currently, the right sidebar has no background on my site, but this sub-site I am creating (using the new page template "beyond.php") needs to have a plain old white background and some sort of border. I read over this thread, but I don't understand how the footer would effect the sidebar. Long story short, I don't know how to style the sidebar of this new page template. Many thanks! EDIT: Nevermind. I figured it out. HTML Code:
body.page-id-2111 #right{ |
what is the url of the page in question?
|
http://www.energyfairness.org/beyond-affordable pw: Emily2012
The problem I'm having now is how to change the width of the center column and sidebar in the new page template. EDIT: again, after some more research, I have solved the sidebar width problem using .colthree as my selector. HTML Code:
body.page-template-beyond-php .colthree{ |
good job! any other issues?
|
Not as of now, but Lord only knows what I might run into. I've moved onto the widgets for the sidebar, so I think i'm good to go on the over page template layout.
I feel kinds stupid for posting and then answering my own questions, but I know if i've run into these problem someone else has or will. Hopefully this will help some folks out. |
All times are GMT -6. The time now is 03:22 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.