View Full Version : Adding a Page to Template
Pixelfuss
06-12-2008, 06:58 PM
Hello,
Can someone give me some direction on how to add a 'page' to my template? I currently have a Home, Archive, About, and Comments 'page' and would like to simply add another page similar to the About page for News, where I could post daily or weekly updates.
Thanks in advance!
fadattf
06-12-2008, 09:09 PM
I think the easiest way is to
1) copy the about_template.html page to e.g. news_template.html
2) add a new menu to every existing template page.
something like (just copy another menu line and adapt it): <a href="?x=news">News</a>
3) Put your news into the news_template.html file replacing the about stuff in there.
Hope that's a first help for you.
Pixelfuss
06-13-2008, 02:13 AM
Dude, big thanks, with the Wiki, even though it's down, I was afraid replies would simply direct me toward that for instructions on extending templates. Your instructions worked perfectly, check it out if you want, www.pixelfuss.com. Not a shameless plug, just thought you might appreciate seeing your effort put to use, I certainly do! Thanks again!
Pixelfuss
06-13-2008, 02:41 AM
One additional question....my footer is no longer centered, I tried a few things, but can't figure it out, it's the same as the other pages....any tips?
Dkozikowski
06-13-2008, 04:09 AM
Your footer is centered in Safari and FF. What browser are you using? IE?
Pixelfuss
06-13-2008, 05:25 AM
Hi, thanks for having a look at my post, I've checked in both Safari and Firefox, the page where my footer is not centered is the News page, see here: http://pixelfuss.com/index.php?x=news
Dkozikowski
06-13-2008, 06:07 AM
Try adding text-align: center; to the #footer id tag in your horizon css file.
Pixelfuss
06-13-2008, 04:10 PM
Hey, I had the text-alight: center, looks like the problem was due to missing infobox divider. Added this prior to the footer code, and it's fixed!
</ul>
</div>
</div> <!--/infobox -->
Frida
06-16-2008, 05:41 PM
I think the easiest way is to
1) copy the about_template.html page to e.g. news_template.html
2) add a new menu to every existing template page.
something like (just copy another menu line and adapt it): <a href="?x=news">News</a>
3) Put your news into the news_template.html file replacing the about stuff in there.
Hope that's a first help for you.
Thank you for this, I used it to make a mosaic template to my delicious theme. It was really easy when I did as you recommended. Thank again :-)
vBulletin® v3.7.3, Copyright ©2000-2013, Jelsoft Enterprises Ltd.