How to Remove Meta data (author/cat/etc) and Date from Page

Best WordPress theme for festivals or other events with responsive, clean and unique design.
GK User
Tue Nov 13, 2012 12:18 am
How do you remove the Meta data (author, comments, permalink, etc.) and the Date from Page layout? (not post)
User avatar
Fresh Boarder

GK User
Tue Nov 13, 2012 8:49 am
Hi,

The date is disabled only on the custom page templates and on the full-width template page. The author can be disabled on pages at the basic settings, the comments and permalinks can be disabled on the page editor. If you need to totally remove the date from all pages you can edit the file:

layouts/content.post.header.php

and change fragment:

Code: Select all
<?php if((!is_page_template('template.fullwidth.php') && ('post' == get_post_type() || 'page' == get_post_type())) && get_the_title() != '') : ?>
<?php gk_post_meta(); ?>
<?php endif; ?>


to:

Code: Select all
<?php if(!is_page() && (!is_page_template('template.fullwidth.php') && ('post' == get_post_type() || 'page' == get_post_type())) && get_the_title() != '') : ?>
<?php gk_post_meta(); ?>
<?php endif; ?>
User avatar
Administrator


cron