How to remove date from page posts ?

Best WordPress theme for festivals or other events with responsive, clean and unique design.
GK User
Mon May 13, 2013 7:39 am
I want to remove dates from page posts (not article posts) because it's irrelevant for the use I'm making of this theme.

Where could I do this ?
What is the code to edit ?

Please be clear, I'm not a programmer.

Thank you in advance.
User avatar
Expert Boarder

GK User
Mon May 13, 2013 7:45 am
Login into wp-admin and go into "pages". There is a list of all pages and You can edit them from that place.
If that is not what you are looking for, please describe your problem more precisely, maybe attach an URL or screenshot.
User avatar
Moderator

GK User
Mon May 13, 2013 4:46 pm
My God, I thought I made myself clear.


I wanna get rid of the date on "pages" posts.


Image



Thank you in advance.

Which code ? Which files to edit ?



Not the posts, only the pages
User avatar
Expert Boarder

GK User
Tue May 14, 2013 8:05 am
Please check in Fest -> template options - > Pages section
if option "Display details on pages" is enabled and if so, disable it.
User avatar
Moderator

GK User
Tue May 14, 2013 8:52 am
I said "date" not "author"…


The options on Themes Options only deals with Author info


Image





Please, I know it's annoying to have me asking for support every day, but keep in mind that it serves users who are buying this theme and who might be having the same issue. Take the time to answer in the best way you can. Thank you.


How can I hide the dates from showing on the pages ? I use the pages for infos that have no revelance to the date posted. It confuses the reader. He asks himself: what is this date for ? That's why I want to remove it from the pages.

You should have it as an option in Template Options too.


So, how do I do this manually ?
User avatar
Expert Boarder

GK User
Tue May 14, 2013 10:56 am
What version of Fest template do You use?
The current one have the option I was talking about:
Zrzut ekranu 2013-05-14 o 11.54.32.png


Could You post here a content of your /wp-content/themes/fest/layouts/content.post.header.php ?
User avatar
Moderator

GK User
Tue May 14, 2013 11:12 am
@ragots If you want to remove ONLY date from pages, open Fest/layouts/content.post.header file, find this fragment:
Code: Select all
<time class="entry-date<?php if(get_post_format() != '') : ?> gk-format-<?php echo get_post_format(); ?><?php endif; ?>" datetime="<?php echo esc_attr(get_the_date('c')); ?>">
   <a href="<?php echo esc_url(get_permalink()); ?>" title="<?php echo esc_attr(get_the_time()); ?>" rel="bookmark">
      <?php echo esc_html(get_the_date('d')); ?>   
      <span><?php echo esc_html(get_the_date('M')); ?></span>
   </a>
</time>

Add this condition before:
Code: Select all
<?php if(is_single()) : ?>

and this after:
Code: Select all
<?php endif; ?>

Display details on pages (Theme option) removes date with author, comments etc.
User avatar
Moderator

GK User
Tue May 14, 2013 1:36 pm
I don't want to hard code hacks into my theme.

There is an option for that it seems in FEST new version.

This is driving me nuts. I seem to be running an old version of FEST even though in the backend it says that my template is up to date !!!


This is the content of content.post.header.php


Code: Select all
<?php

/**
 *
 * The template fragment to show post header
 *
 **/

// disable direct access to the file   
defined('GAVERN_WP') or die('Access denied');

global $tpl;

?>


<?php if((!is_page_template('template.fullwidth.php') && ('post' == get_post_type() || 'page' == get_post_type())) && get_the_title() != '') : ?>
<time class="entry-date<?php if(get_post_format() != '') : ?> gk-format-<?php echo get_post_format(); ?><?php endif; ?>" datetime="<?php echo esc_attr(get_the_date('c')); ?>">
   <a href="<?php echo esc_url(get_permalink()); ?>" title="<?php echo esc_attr(get_the_time()); ?>" rel="bookmark">
      <?php echo esc_html(get_the_date('d')); ?>   
      <span><?php echo esc_html(get_the_date('M')); ?></span>
   </a>
</time>
<?php endif; ?>

<?php if(get_the_title() != '') : ?>
<hgroup>
   <h<?php echo (is_single()) ? '1' : '2'; ?>>
      <?php if(!is_singular()) : ?>
      <a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', GKTPLNAME ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark">
      <?php endif; ?>
         <?php the_title(); ?>
      <?php if(!is_singular()) : ?>
      </a>
      <?php endif; ?>
      
      <?php if(is_sticky()) : ?>
      <sup>
         <?php _e( 'Featured', GKTPLNAME ); ?>
      </sup>
      <?php endif; ?>
   </h<?php echo (is_single()) ? '1' : '2'; ?>>
</hgroup>
<?php endif; ?>

<?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; ?>

<?php do_action('gavernwp_before_post_content'); ?>




Somebody from support said he did not understand how come I have an OLD version of FEST if in the backend it says FEST is up to date.


How can I upgrade ? Why is it not automatic from the WP Dashboard ?
User avatar
Expert Boarder

GK User
Tue May 14, 2013 11:20 pm
Problem solved. I have updated the theme by hand. Now I see where to disable the date in the theme options.


You should investigate this matter. >>> How come the theme says "your theme is up to date" in the dashboard, meanwhile, it is not. :roll:
User avatar
Expert Boarder

GK User
Wed May 15, 2013 10:01 am
Unfortunately, now you can update theme only by hand, but we are working on a tool to themes update.

Probably earlier you copied gavern/config directory, where the theme version is stored but you didn't copy rest of theme files.
User avatar
Moderator


cron