Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Montezuma Theme (http://forum.bytesforall.com/forumdisplay.php?f=53)
-   -   How to remove date from post pages? (http://forum.bytesforall.com/showthread.php?t=23966)

hardworker1970 May 16, 2017 06:20 PM

How to remove date from post pages?
 
How do I remove the date from the post page?
I have research old post and saw where i should remove the
date from the front page in the 'postformat.php'.
And i saw where i should also edit the single.php to delete
the date for single post. However i am not seeing where
in that file i should remove the date. Can someone please
advise me?

juggledad May 17, 2017 06:48 AM

go to the MTO->Main Templates->single.php and find the section:
HTML Code:

<div class="post-footer">
        <?php the_time( 'j M Y' ); ?> &nbsp;&nbsp;| <?php the_category( ' &middot; ' ); ?>
        <?php the_tags( __( '<p class="post-tags">Tags: ', 'montezuma' ), ' &middot; ', '</p>' ); ?>
</div>

and change this line:
HTML Code:

        <?php the_time( 'j M Y' ); ?> &nbsp;&nbsp;| <?php the_category( ' &middot; ' ); ?>
to
HTML Code:

        <?php the_category( ' &middot; ' ); ?>

hardworker1970 May 17, 2017 09:42 AM

Thank you juggledad, that was the only section i knew had to do with the date
but i didn't know what to to do.Thanks again.


All times are GMT -6. The time now is 12:35 PM.

Powered by vBulletin® Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.