Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Center area post/pages (http://forum.bytesforall.com/forumdisplay.php?f=32)
-   -   Page templates (http://forum.bytesforall.com/showthread.php?t=16542)

cway Jan 20, 2012 08:40 AM

Page templates
 
Is it possible to create a page template?

For example, I have the same design or style on most of the pages and instead of copying-n-pasting the same code for these pages, it would be nice if I could select a template.

This is the coding I'm copying-n-pasting into each page that I want to have this particular style:
Code:

<table style="padding: 0 0px 0 0px; margin: 0px 0 0px 0;" width="100%" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td class="framecolor" style="padding-top: 10px;" valign="top">
<div id="subpageContainer">
<div id="subtop">
<div id="subLeft">
<h1 style="text-align: center;"><span style="color: #fff0f5;"><strong>ENTER PAGE NAME HERE</strong></span></h1>
</div>
[include-page id="51"]

</div>
<div id="pagecontent">

ENTER CONTENT HERE

</div>
</div></td>
</tr>
</tbody>
</table>


juggledad Jan 20, 2012 10:52 AM

Sure you can create page templates, there are several in the gold forum tutorials section you can look at.
Use index.php as your base.

cway Jan 20, 2012 04:58 PM

Will there be a menu when you're creating a new Page so an admin can choose which template to use?

juggledad Jan 20, 2012 06:21 PM

Once you create the template, you put it in the theme folder and a template box will show up in the page editor. From there you can pick the template you want to use.

This is all controlled by WordPress.


All times are GMT -6. The time now is 02:23 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.