Skip to content

Commit

Permalink
Page title updates
Browse files Browse the repository at this point in the history
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
dflippo committed Apr 25, 2015
1 parent 5bd8384 commit 4ca802a
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 5 deletions.
4 changes: 4 additions & 0 deletions content-page.php
Expand Up @@ -9,6 +9,10 @@
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>

<div class="entry-meta">
<?php uu2014_posted_on(); ?>
</div><!-- .entry-meta -->
</header><!-- .entry-header -->

<div class="entry-content">
Expand Down
33 changes: 33 additions & 0 deletions page-notitle.php
@@ -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(); ?>
25 changes: 20 additions & 5 deletions style.css
Expand Up @@ -1707,18 +1707,33 @@ img#wpstats {

/* 20.10 UU2014 - Specific #ID Styles
========================================================================== */
#main.no-sidebar { margin: 0; }
#main.no-sidebar {
margin: 0;
}

.page-template-page-nosidebar-php .site-content {
background-size: 0%; }
background-size: 0%;
}

.page-template-page-notitle .entry-title {
display: none;
}

.page .entry-meta {
display: none;
}

#breadcrumbs {
margin: 0 20px;
margin: 0 20px;
}

.menu-sitemap { display: none; }
.menu-sitemap {
display: none;
}

.powerpress_player { clear: both; }
.powerpress_player {
clear: both;
}

/* 20.11 UU2014 - Comments
========================================================================== */
Expand Down

0 comments on commit 4ca802a

Please sign in to comment.