modifying CSS for custom page template
-
Hello everyone, I am having an issue with a page template. So here is the issue, I went ahead and created a new page template, renamed and removed the sidebar by deleting a bunch of atomic php lines.
Now the original default page template is retrieving the background from a picture. I went ahead and modified the picture, the original pic name was “bg-container” so I called this modified pic bg-container1. Now if I locate the #container tag in the CSS and change from bg-container to bg-container1 it works perfectly except it applies this to every page. So I went ahead and inserted this line at the end of the css file
.page-template-nosidebar .container{overflow:hidden;width:980px;margin:30px auto 0;background:url(images/bg-container1.png) repeat-y}
I did this with a previous page and it has worked fine but for some reason it doesn’t work with this one. What am I doing wrong, it seems the only way I can change this background image is to change the main image which changes all of them. Can anyone tell me how I can apply this modified image to my page template?
- The topic ‘modifying CSS for custom page template’ is closed to new replies.