How to remove post information from a page?

Best WordPress theme for game news websites, game portals or whatever your preferred subject.
GK User
Sun Dec 30, 2012 8:42 am
Hello,

I created a contact page for my visitors, however, the additional information (author, date, edit, comment) appears under the title of the page. I want to remove this information. I just want the name of the page, without this info.

http://kepfeltoltes.hu/121230/Capture_www.kepfeltoltes.hu_.png

I think it is the content-page.php file which needs to be edited, but I don't dare to touch it. :) Can you please help?

Thanks
User avatar
Senior Boarder

GK User
Sun Dec 30, 2012 9:08 am
Hi,

If you want to remove this details from all pages, please open 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() && ('post' == get_post_type() || 'page' == get_post_type())) && get_the_title() != '') : ?>
   <?php gk_post_meta(); ?>
   <?php endif; ?>
User avatar
Administrator

GK User
Sun Dec 30, 2012 9:30 am
Thanks for the quick response. It works fine! :)
User avatar
Senior Boarder


cron