Skip to content

Commit

Permalink
Update page templates
Browse files Browse the repository at this point in the history
Add descriptions of all templates to readme.txt
Remove guestbook template since it's use is limited (you could use a normal page for the same effect).
Add content only template so we can build totally custom pages with the new editor

#12
  • Loading branch information
BinaryMoon committed Jul 12, 2019
1 parent fd8a48f commit 8205a96
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 14 deletions.
14 changes: 11 additions & 3 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,17 @@ Tags: Black, Blue, Brown, Gray, Green, Orange, Pink, Purple, Red, Silver, Tan, W

== Installation ==

1. In your admin panel, go to Appearance > Themes and click the Add New button.
2. Click Upload and Choose File, then select the theme's .zip file. Click Install Now.
3. Click Activate to use your new theme right away.
1. Upload the theme
2. Activate the theme

== Page Templates ==

Jarvis comes bundled with a number of page templates. These can be used as follows:

* __Content Only__ - A template that removes the site header and footer and displays just the page content. This is a nice way to create totally custom layouts using the new editor. Ideal for landing pages, or store pages where the focus should be the page content.
* __Contributors__ - A list of all the people (users) who have contributed content (published at least one post) to your website, their most recent posts, and a link to their user archive.
* __Child Page Grid__ - Lists all of the pages that are children of the current page. Handy if you have a complex site hierachy.
* __Portfolio__ - Displays your most recent portfolio posts. Requires the Jetpack plugin. Allows you to add portfolio posts to your website homepage.

== Frequently Asked Questions ==

Expand Down
16 changes: 5 additions & 11 deletions templates/guestbook-page.php → templates/content-only.php
Original file line number Diff line number Diff line change
@@ -1,23 +1,20 @@
<?php
/**
* Guestbook page template
* Content only page template
*
* Displays a full-width page, with prominent comments styles. Allows for easy
* creation of a Guestbook on a site.
* Removes the site header and footer and just displays the page content.
*
* Template Name: Guestbook
* Template Post Type: post, page
* Template Name: Content Only
*
* @package Jarvis
* @subpackage PageTemplate
* @author Ben Gillbanks <[email protected]>
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU Public License
*/

get_header();
?>

<main class="full-width guestbook">
<main id="main">

<div class="main-content content-single">

Expand All @@ -29,15 +26,12 @@
the_post();

get_template_part( 'parts/content-single', get_post_type() );
get_template_part( 'parts/comments' );

}
}
?>

</div>

</main>

<?php
get_footer();
</main>

0 comments on commit 8205a96

Please sign in to comment.