<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Support Forum - Topic: Creating a New Template</title>
		<link>http://www.kriesi.at/support/topic/creating-a-new-template</link>
		<description>Support Forum - Topic: Creating a New Template</description>
		<language>en-US</language>
		<pubDate>Sat, 25 May 2013 19:07:02 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.kriesi.at/support/search.php</link>
		</textInput>
		<atom:link href="http://www.kriesi.at/support/rss/topic/creating-a-new-template" rel="self" type="application/rss+xml" />

		<item>
			<title>Ismael on "Creating a New Template"</title>
			<link>http://www.kriesi.at/support/topic/creating-a-new-template#post-64342</link>
			<pubDate>Sun, 08 Jul 2012 08:23:39 +0000</pubDate>
			<dc:creator>Ismael</dc:creator>
			<guid isPermaLink="false">64342@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi outtacontext,&#60;/p&#62;
&#60;p&#62;Glad that Devin helped you. :)&#60;/p&#62;
&#60;p&#62;Cheers,&#60;br /&#62;
Ismael
&#60;/p&#62;</description>
		</item>
		<item>
			<title>outtacontext on "Creating a New Template"</title>
			<link>http://www.kriesi.at/support/topic/creating-a-new-template#post-64086</link>
			<pubDate>Fri, 06 Jul 2012 12:14:07 +0000</pubDate>
			<dc:creator>outtacontext</dc:creator>
			<guid isPermaLink="false">64086@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;That worked! Thanks, Devin.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Devin on "Creating a New Template"</title>
			<link>http://www.kriesi.at/support/topic/creating-a-new-template#post-63970</link>
			<pubDate>Thu, 05 Jul 2012 22:51:48 +0000</pubDate>
			<dc:creator>Devin</dc:creator>
			<guid isPermaLink="false">63970@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;You need to include the loop and the content for the template to show the information you add into the visual editor. So:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php if (have_posts()) : while (have_posts()) : the_post();?&#38;gt;

 &#38;lt;?php the_content(); ?&#38;gt;

 &#38;lt;?php endwhile; endif; ?&#38;gt;&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>outtacontext on "Creating a New Template"</title>
			<link>http://www.kriesi.at/support/topic/creating-a-new-template#post-63947</link>
			<pubDate>Thu, 05 Jul 2012 21:28:24 +0000</pubDate>
			<dc:creator>outtacontext</dc:creator>
			<guid isPermaLink="false">63947@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;This is an updated template code:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
/*
Template Name: Past
*/
?&#38;gt;

&#38;lt;!DOCTYPE html&#38;gt;
&#38;lt;html lang=&#38;quot;en&#38;quot;&#38;gt;
&#38;lt;head&#38;gt;
	&#38;lt;meta charset=&#38;quot;utf-8&#38;quot; /&#38;gt;
	&#38;lt;title&#38;gt;Untitled&#38;lt;/title&#38;gt;

&#38;lt;link rel=&#38;quot;stylesheet&#38;quot; href=&#38;quot;&#38;lt;?php echo get_bloginfo(&#38;#39;template_url&#38;#39;); ?&#38;gt;/css/layout.css?v=1&#38;quot; type=&#38;quot;text/css&#38;quot; media=&#38;quot;screen&#38;quot;/&#38;gt;
&#38;lt;link rel=&#38;quot;stylesheet&#38;quot; href=&#38;quot;&#38;lt;?php echo get_bloginfo(&#38;#39;template_url&#38;#39;); ?&#38;gt;/css/custom.css&#38;quot; type=&#38;quot;text/css&#38;quot; media=&#38;quot;screen&#38;quot;/&#38;gt;
&#38;lt;style&#38;gt;
#past_background {background: #000000;
}
&#38;lt;/style&#38;gt;
&#38;lt;/head&#38;gt;
&#38;lt;body id=&#38;quot;past_background&#38;quot;&#38;gt;
&#38;lt;/body&#38;gt;
&#38;lt;/html&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;It still isn't showing the content I've created on a Page that uses this template.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>outtacontext on "Creating a New Template"</title>
			<link>http://www.kriesi.at/support/topic/creating-a-new-template#post-63874</link>
			<pubDate>Thu, 05 Jul 2012 16:07:34 +0000</pubDate>
			<dc:creator>outtacontext</dc:creator>
			<guid isPermaLink="false">63874@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Thanks for the quick response. I tried that to begin with. I went to the WP codex page and I created this template:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
/*
Template Name: Past
*/
?&#38;gt;

&#38;lt;html&#38;gt;
&#38;lt;style&#38;gt;
#past_background {background: #000000;
}
&#38;lt;/style&#38;gt;

&#38;lt;body id=&#38;quot;past_background&#38;quot;&#38;gt;
&#38;lt;/body&#38;gt;
&#38;lt;/html&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Then I created a new page, applied this template to it and in the page content box put this code:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;div class=&#38;quot;image_center&#38;quot;&#38;gt;
&#38;lt;img src=&#38;quot;http://outtacontext.com/wp2/wp-content/themes/sentence/images/past/past1.jpg&#38;quot; alt=&#38;quot;Theda Barra&#38;quot; border=&#38;quot;0&#38;quot; /&#38;gt;
&#38;lt;/div&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;When I published it, I got the black background but no image showed up at all (if I look at the &#34;Visual&#34; form of the content, the image shows so I know the link is correct). See this: &#60;a href=&#34;http://www.outtacontext.com/wp2/test/&#34; rel=&#34;nofollow&#34;&#62;http://www.outtacontext.com/wp2/test/&#60;/a&#62; &#60;/p&#62;
&#60;p&#62;Looking at the source code for that page, the only thing it's showing is the code I put in the template, not the code I put in the page.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Devin on "Creating a New Template"</title>
			<link>http://www.kriesi.at/support/topic/creating-a-new-template#post-63860</link>
			<pubDate>Thu, 05 Jul 2012 15:20:32 +0000</pubDate>
			<dc:creator>Devin</dc:creator>
			<guid isPermaLink="false">63860@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi outtacontext,&#60;/p&#62;
&#60;p&#62;Take a look at: &#60;a href=&#34;http://codex.wordpress.org/Pages#Creating_Your_Own_Page_Templates&#34; rel=&#34;nofollow&#34;&#62;http://codex.wordpress.org/Pages#Creating_Your_Own_Page_Templates&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;You can just use:&#60;br /&#62;
&#60;code&#62;&#38;lt;?php get_header(); ?&#38;gt;&#60;/code&#62; to include the header.php and not have to create your own. Otherwise, you can just include your own html page completely.&#60;/p&#62;
&#60;p&#62;So if you don't want to include any of the content from the template, don't use the footer or get_header code and just put in your own plain html page below the temeplate info.&#60;/p&#62;
&#60;p&#62;Regards,&#60;/p&#62;
&#60;p&#62;Devin
&#60;/p&#62;</description>
		</item>
		<item>
			<title>outtacontext on "Creating a New Template"</title>
			<link>http://www.kriesi.at/support/topic/creating-a-new-template#post-63856</link>
			<pubDate>Thu, 05 Jul 2012 15:09:12 +0000</pubDate>
			<dc:creator>outtacontext</dc:creator>
			<guid isPermaLink="false">63856@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;I'd like to create a new, but very simple template for my site. Basically, it will be just an empty page with a black background. I tried creating the template using elements of the header and footer I thought were important but it isn't working. I'm getting a gray background with nothing in it. &#60;/p&#62;
&#60;p&#62;Here's the new template's code:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
/*
Template Name: Past
*/
?&#38;gt;

&#38;lt;?php $style = &#38;#39;boxed&#38;#39;; ?&#38;gt;

&#38;lt;!DOCTYPE html&#38;gt;
&#38;lt;html &#38;lt;?php language_attributes(); ?&#38;gt; class=&#38;quot;&#38;lt;?php echo avia_get_browser(&#38;#39;class&#38;#39;, true); echo &#38;quot; html_$style&#38;quot;;?&#38;gt; &#38;quot;&#38;gt;
&#38;lt;head&#38;gt;
&#38;lt;meta charset=&#38;quot;&#38;lt;?php bloginfo( &#38;#39;charset&#38;#39; ); ?&#38;gt;&#38;quot; /&#38;gt;
&#38;lt;?php
	global $avia_config;

	/*
	 * outputs a rel=follow or nofollow tag to circumvent google duplicate content for archives
	 * located in framework/php/function-set-avia-frontend.php
	 */
	 if (function_exists(&#38;#39;avia_set_follow&#38;#39;)) { echo avia_set_follow(); }

	 /*
	 * outputs a favicon if defined
	 */
	 if (function_exists(&#38;#39;avia_favicon&#38;#39;))    { echo avia_favicon(avia_get_option(&#38;#39;favicon&#38;#39;)); }

?&#38;gt;

&#38;lt;!-- page title, displayed in your browser bar --&#38;gt;
&#38;lt;title&#38;gt;&#38;lt;?php bloginfo(&#38;#39;name&#38;#39;); ?&#38;gt; &#124; &#38;lt;?php is_home() ? bloginfo(&#38;#39;description&#38;#39;) : wp_title(&#38;#39;&#38;#39;); ?&#38;gt;&#38;lt;/title&#38;gt;

&#38;lt;!-- add feeds, pingback and stuff--&#38;gt;
&#38;lt;link rel=&#38;quot;profile&#38;quot; href=&#38;quot;http://gmpg.org/xfn/11&#38;quot; /&#38;gt;
&#38;lt;link rel=&#38;quot;alternate&#38;quot; type=&#38;quot;application/rss+xml&#38;quot; title=&#38;quot;&#38;lt;?php echo get_bloginfo(&#38;#39;name&#38;#39;); ?&#38;gt; RSS2 Feed&#38;quot; href=&#38;quot;&#38;lt;?php avia_option(&#38;#39;feedburner&#38;#39;,get_bloginfo(&#38;#39;rss2_url&#38;#39;)); ?&#38;gt;&#38;quot; /&#38;gt;
&#38;lt;link rel=&#38;quot;pingback&#38;quot; href=&#38;quot;&#38;lt;?php bloginfo( &#38;#39;pingback_url&#38;#39; ); ?&#38;gt;&#38;quot; /&#38;gt;

&#38;lt;!-- add css stylesheets --&#38;gt;
&#38;lt;link rel=&#38;quot;stylesheet&#38;quot; type=&#38;quot;text/css&#38;quot; media=&#38;quot;all&#38;quot; href=&#38;quot;&#38;lt;?php bloginfo( &#38;#39;stylesheet_url&#38;#39; ); ?&#38;gt;&#38;quot; /&#38;gt;
&#38;lt;link rel=&#38;quot;stylesheet&#38;quot; href=&#38;quot;&#38;lt;?php echo get_bloginfo(&#38;#39;template_url&#38;#39;); ?&#38;gt;/css/grid.css&#38;quot; type=&#38;quot;text/css&#38;quot; media=&#38;quot;screen&#38;quot;/&#38;gt;
&#38;lt;link rel=&#38;quot;stylesheet&#38;quot; href=&#38;quot;&#38;lt;?php echo get_bloginfo(&#38;#39;template_url&#38;#39;); ?&#38;gt;/css/base.css&#38;quot; type=&#38;quot;text/css&#38;quot; media=&#38;quot;screen&#38;quot;/&#38;gt;
&#38;lt;link rel=&#38;quot;stylesheet&#38;quot; href=&#38;quot;&#38;lt;?php echo get_bloginfo(&#38;#39;template_url&#38;#39;); ?&#38;gt;/css/layout.css?v=1&#38;quot; type=&#38;quot;text/css&#38;quot; media=&#38;quot;screen&#38;quot;/&#38;gt;
&#38;lt;link rel=&#38;quot;stylesheet&#38;quot; href=&#38;quot;&#38;lt;?php echo get_bloginfo(&#38;#39;template_url&#38;#39;); ?&#38;gt;/css/slideshow.css?v=1&#38;quot; type=&#38;quot;text/css&#38;quot; media=&#38;quot;screen&#38;quot;/&#38;gt;
&#38;lt;link rel=&#38;quot;stylesheet&#38;quot; href=&#38;quot;&#38;lt;?php echo get_bloginfo(&#38;#39;template_url&#38;#39;); ?&#38;gt;/css/shortcodes.css&#38;quot; type=&#38;quot;text/css&#38;quot; media=&#38;quot;screen&#38;quot;/&#38;gt;

&#38;lt;link rel=&#38;quot;stylesheet&#38;quot; href=&#38;quot;&#38;lt;?php echo get_bloginfo(&#38;#39;template_url&#38;#39;); ?&#38;gt;/js/prettyPhoto/css/prettyPhoto.css&#38;quot; type=&#38;quot;text/css&#38;quot; media=&#38;quot;screen&#38;quot;/&#38;gt;
&#38;lt;!--&#38;lt;link rel=&#38;quot;stylesheet&#38;quot; href=&#38;quot;&#38;lt;?php echo get_bloginfo(&#38;#39;template_url&#38;#39;); ?&#38;gt;/js/projekktor/theme/style.css&#38;quot; type=&#38;quot;text/css&#38;quot; media=&#38;quot;screen&#38;quot;/&#38;gt;--&#38;gt;

&#38;lt;!-- mobile setting --&#38;gt;
&#38;lt;meta name=&#38;quot;viewport&#38;quot; content=&#38;quot;width=device-width, initial-scale=1, maximum-scale=1&#38;quot;&#38;gt;

&#38;lt;?php

	/* add javascript */

	wp_enqueue_script( &#38;#39;jquery&#38;#39; );
	//wp_enqueue_script( &#38;#39;avia-html5-video&#38;#39; );
	wp_enqueue_script( &#38;#39;avia-default&#38;#39; );
	wp_enqueue_script( &#38;#39;avia-social&#38;#39; );
	wp_enqueue_script( &#38;#39;avia-prettyPhoto&#38;#39; );
	wp_enqueue_script( &#38;#39;aviapoly-slider&#38;#39; );

	/* We add some JavaScript to pages with the comment form
	 * to support sites with threaded comments (when in use).
	 */
	if ( is_singular() &#38;amp;&#38;amp; get_option( &#38;#39;thread_comments&#38;#39; ) ) { wp_enqueue_script( &#38;#39;comment-reply&#38;#39; ); }

?&#38;gt;

&#38;lt;!-- plugin and theme output with wp_head() --&#38;gt;
&#38;lt;?php 

	/* Always have wp_head() just before the closing &#38;lt;/head&#38;gt;
	 * tag of your theme, or you will break many plugins, which
	 * generally use this hook to add elements to &#38;lt;head&#38;gt; such
	 * as styles, scripts, and meta tags.
	 */

	wp_head();
?&#38;gt;

&#38;lt;link rel=&#38;quot;stylesheet&#38;quot; href=&#38;quot;&#38;lt;?php echo get_bloginfo(&#38;#39;template_url&#38;#39;); ?&#38;gt;/css/custom.css&#38;quot; type=&#38;quot;text/css&#38;quot; media=&#38;quot;screen&#38;quot;/&#38;gt;

&#38;lt;/head&#38;gt;
&#38;lt;body class=&#38;quot;past_background&#38;quot;&#38;gt;

&#38;lt;?php
	/* Always have wp_footer() just before the closing &#38;lt;/body&#38;gt;
	 * tag of your theme, or you will break many plugins, which
	 * generally use this hook to reference JavaScript files.
	 */

	avia_option(&#38;#39;analytics&#38;#39;, false, true, true);
	wp_footer();

?&#38;gt;
&#38;lt;/body&#38;gt;
&#38;lt;/html&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;And here is the code for the new page I'd like to appear using this template:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;div class=&#38;quot;image_center&#38;quot;&#38;gt;
&#38;lt;img src=&#38;quot;http://outtacontext.com/wp2/wp-content/themes/sentence/images/past/past1.jpg&#38;quot; alt=&#38;quot;Theda Barra&#38;quot; border=&#38;quot;0&#38;quot; /&#38;gt;
&#38;lt;/div&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Here's what I got when I created that page: &#60;a href=&#34;http://www.outtacontext.com/wp2/test/&#34; rel=&#34;nofollow&#34;&#62;http://www.outtacontext.com/wp2/test/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Can you help me? I just want that image (past1.jpg) to be on a page with a black background. Oh, and I would love to be able to center it both vertically and horizontally. Can you tell me how to do that too?&#60;/p&#62;
&#60;p&#62;Thanks.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
