Forums

Remove date from page (6 posts)

  1. Tottejaevel
    Member
    Posted 1 year ago #

    Hi!

    Can anyone help me romeve the date from one of my pages?

    Strange thing is that the date only appears on one of my pages...

    This is my page.php

    `<?php get_header(); ?>

    <ul class="clearfix">
    <li id="left-column">
    <?php if (have_posts()) :
    global $show_author, $post;
    $show_author = 1;
    while (have_posts()) : the_post(); setup_postdata($post);
    include(TEMPLATEPATH."/functions/fetch-post.php");
    endwhile;
    else :
    ocmx_no_posts();
    endif; ?>
    <?php comments_template(); ?>

    <?php get_sidebar(); ?>

    <?php get_footer(); ?>

  2. keesiemeijer
    moderator
    Posted 1 year ago #

    It should be somewhere in fetch-post.php /functions/fetch-post.php.
    Look for something like the_date(). What theme are you using (link please)?

  3. Tottejaevel
    Member
    Posted 1 year ago #

    I'm using the Carousel theme.

    Yeah, think i found it:

    <?php if(!is_page()) :?>
    	<h5 class="date post-date"><?php echo date('d M Y', strtotime($post->post_date)); ?> <?php _e("by"); ?> <?php the_author_posts_link(); ?> <?php comments_number(' | No Comments',' | 1 Comment',' | % Comments'); ?></h5>
    <?php endif; ?>

    Should i just delete that line?

    Isn't it possible to hide it in the stylesheet? (I'm new at this stuff...)

    Link, site in Swedish though:

    Thanks a lot for the help!

  4. keesiemeijer
    moderator
    Posted 1 year ago #

    If you dont wan't to show it you can just delete these lines.

  5. Tottejaevel
    Member
    Posted 1 year ago #

    Didn't work. I took away the code above and didn't really see any differens...

  6. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    You may have to edit more than 1 template file. And remember to press CTRL and F5 simultaneously when viewing an updated page/site. Or try emptying your browser cache. This should ensure that your web browser fetches a fresh copy of the page rather than serving up an out-dated copy from your own cache. Also disable/deactivate any caching plugin(s).

Topic Closed

This topic has been closed to new replies.

About this Topic