Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added new page template that will made the title of a page not appear visually. It is still there for search engines though. Also added the same entry-meta section that posts have to all pages but it is not visible on pages. This is also for search engines because they now look for authors and dates in the semantic HTML for "article".
- Loading branch information
Showing
3 changed files
with
57 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
/* Template Name: No Title Template | ||
* @package UU2014 | ||
*/ | ||
|
||
get_header(); | ||
?> | ||
<div id="primary" class="content-area"> | ||
<main id="main" class="site-main" role="main"> | ||
<?php get_template_part('content', 'header'); ?> | ||
|
||
<?php while (have_posts()) : the_post(); ?> | ||
|
||
<?php get_template_part('content', 'page'); ?> | ||
|
||
<?php | ||
// If the theme is set to display comments | ||
if (get_theme_mod('uu2014_display_comments_pages', 1)) { | ||
// If comments are open or we have at least one comment, load up the comment template | ||
if ( comments_open() || get_comments_number() ) { | ||
comments_template(); | ||
} | ||
} ?> | ||
|
||
<?php endwhile; // end of the loop. ?> | ||
|
||
<?php get_template_part('content', 'footer'); ?> | ||
</main><!-- #main --> | ||
</div><!-- #primary --> | ||
|
||
<?php get_sidebar(); ?> | ||
<?php if (has_category()) : get_sidebar('category'); endif;?> | ||
<?php get_footer(); ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters