Using More than One Template - Printable Version +- GetSimple Support Forum (http://get-simple.info/forums) +-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3) +--- Forum: General Questions and Problems (http://get-simple.info/forums/forumdisplay.php?fid=16) +--- Thread: Using More than One Template (/showthread.php?tid=859) |
Using More than One Template - DawnB - 2010-07-20 How do I go about having the ability to use more than one template? When I go to a page and look at page options, the only template option I have to assign is the default template and I need to be able to use more than one template - how can I do this please? Thanks, Dawn Using More than One Template - Zegnåt - 2010-07-20 Each PHP file in the theme’s directory gets added to that list, template.php being the default. This and more about the structure of themes can be found in the documentation: theme creation. Using More than One Template - DawnB - 2010-07-20 Zegnåt Wrote:Each PHP file in the theme’s directory gets added to that list, template.php being the default. This and more about the structure of themes can be found in the documentation: theme creation. I'm sorry, but it's not clear to me how I use more than one theme - which is what I need to be able to do. Thanks, Dawn Using More than One Template - Zegnåt - 2010-07-20 You can’t use more than one theme, only more than one template, which is almost the same. The difference is the structure. A theme is created by having multiple directories in the themes directory. A template is created by having multiple PHP files in one theme directory. If you have two themes and want to merge them into one you should rename template.php to something else and then you can put them both in the same folder. Let’s say you rename template.php into home.php because you want to use this second theme for the homepage. If it’s in the same directory as the first theme you now have template.php and home.php in there. Once you have this you can select either default or “home.php†from the template setting when you create a page. I hope this makes it clear. Using More than One Template - DawnB - 2010-07-20 So if I want to apply more than one template, do I just name them something different and put them in the theme directory that I am using? I am assuming if that is the case, that anything called template.php is considered "default"? Thanks, Dawn Using More than One Template - Zegnåt - 2010-07-20 You got it! ;-) Using More than One Template - DawnB - 2010-07-20 Thank you. Can I pick your brain on the drop-down menu again? Here is the "template" that I am working with, when I put the menu call within the divs calling the css and put the css and js in the theme sub-directory, it appears to be showing up vertical instead of horizontal: http://www.memoriesdesign.com/getsimple/ This is how I did the code with some assistance from one of the forum people: <div id="p7PMM_1" class="p7PMMh06 p7PMMnoscript"> <ul class="p7PMM"> <?php menu_master(); ?> </ul> </div> Any thoughts? Thanks so much! Dawn Using More than One Template - Zegnåt - 2010-07-20 Assuming we’re talking about the same thing as yesterday, that HTML is not going to cut it. This is the HTML you want to get (taken from the original page you linked): Code: <div id="navcontainer"> Code: <div id="navcontainer">
That’s all you’ll find in my brain for now. If you want I can change my plugin slightly to fix the first two points. The third point is easily fixed but the last one stays an unknown till you experiment with it. |