Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.


Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

problem in change homepage theme


6 Posts   1501 Views


15 October 2008 at 11:06pm Community Member, 87 Posts

I want to create a new theme for homepage (different from home, contact, about us page of my site). To do that I create a new page type HomePage.php following first tutorial. Then I create Here I want change header ad footer so this is my file:

<div id="Header" class="new_images">
            <img src="mysite/images/logo.gif" alt="Homepage image" />
         <div id="ContentContainer">
            <div id="Content" class="typography">
         <div id="Footer">
            <img src="mysite/images/villa_copertina.jpg" alt="Homepage image" />

I can't see changes. Why? I modifiy /theme/css/layout.css file an I rewrite #header as #header.newimages. Is this correct?


16 October 2008 at 2:17am Community Member, 87 Posts

It's seems that is impossible to apply modify to header and footer, I can change only the content div.


16 October 2008 at 12:06pm Community Member, 604 Posts

How are those header and footer divs different to your header and footer?


16 October 2008 at 6:15pm Community Member, 470 Posts

Why are you rewriting it as #header.newimages? Where is newimages coming from?

Also, the class has a capital H in your div code, but only a lowercase h in the stylesheet.

The URLSegement returns the page url name, so for example about-us

Thus if you used it in the id of the body tag, you'd rewrite the CSS as follows

#about-us #Header{ stuff };


24 October 2008 at 8:15pm Community Member, 87 Posts

ok!I try, but I can't ovverride the Header of, the new Header is near the other, why?


24 October 2008 at 8:28pm Community Member, 87 Posts

I try explain better: the width of my site is 900px so header, content and body have this extension. I want change homepage and make everythig of 1500px because my homepage is completly different. So my problme is that every change doesn't ovverride but is near the layout of