• How do I remove the date in the sticky post I want at the top of my blog? I’ve been looking on the internet, but all responses were for older versions of WP, and I can’t seem to get those solutions to work. I am using Cool Biker theme. I gather I have to add coding to the style sheet; but what coding do I use and where do I put it on the style sheet?

Viewing 2 replies - 1 through 2 (of 2 total)
  • You’d need to edit the relevant .php template file – not the theme’s stylesheet. For example, if the template files used <?php the_time('F jS, Y');?>, you’d need to amend this to:

    <?php if(!is_sticky()) the_time('F jS, Y');?>

    Thread Starter bobruno

    (@bobruno)

    Nothing like that in any of the .php pages. Here is the main index page… I also looked in page template and comments…and every other one…can’t figure out how to remove the date in the sticky!

    <?php get_header(); ?>
    <div id=”c_content”>
    <div id=”post_entry”>
    <?php if (have_posts()) : ?><?php while (have_posts()) : the_post(); ?>
    <div class=”post_meta” id=”post-<?php the_ID(); ?>”>
    <div class=”post_top”></div>
    <div class=”post_index”>
    <div class=”post_title”>
    <div class=”calendar”>
    <p class=”date”><?php the_time(‘j’); ?></p>
    <p class=”month”><?php the_time(‘M’); ?></p>

    </div>
    <div class=”post_info”>
    <h2>” rel=”bookmark” title=”<?php the_title(); ?>”><?php the_title(); ?></h2>
    <span class=”author”>Posted by <?php the_author_posts_link(); ?> <?php edit_post_link(__(‘ Edit’), ‘|’, ”); ?></span>
    <span class=”category”>Published in <?php the_category(‘, ‘) ?></span></div>
    </div>

    <div class=”post_content”>
    <?php the_content(“
    ” . “continue reading ” . “"” . the_title(”, ”, false) . “"”); ?>
    </div>

    <div class=”post_comment_counter”>
    <div class=”coms_count”>“><?php comments_number(‘no comment’,’1 comment’,’% comments’); ?></div>
    </div>

    </div>
    <div class=”post_bottom”></div>
    </div>
    <div class=”clear_content”></div>

    <?php endwhile; ?>

    <div class=”post_nav”><?php if(function_exists(‘wp_pagenavi’)): ?> <?php wp_pagenavi(); ?><?php else : ?><?php posts_nav_link(); ?>
    <?php endif; ?></div>

    <?php else: ?>

    <h3>The Post Had Been Deleted…</h3>

    <?php endif; ?>

    </div>
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Remove Date From Sticky Post’ is closed to new replies.