Feeds

How do I remove the date (top left) in posts?

PerformancingAds
Submitted by vbcruiser on July 22, 2007 - 11:45am in

How do I remove the date (top left) in posts?


wordpress PHP tweak

vbcruiser: I haven't looked at the code, but generally speaking, you need to go into all the page templates (main index, permalink/single page, pages) and remove the code that prints a post's publication date.

If you have trouble, post here and I'll look at the theme, maybe do a quick screencast to show you how -or something helpful.

I could use some help

I am having a hard time deleting the time and date off all posts and pages. I am using Lorem Ipsum and I can't get the stupid date off.

To remove the date image off

To remove the date image off your pages simply add

<!--

at the front of and

-->

at the end of the following code:

<div class="contentdate">
<h3><?php the_time('M'); ?></h3>
<h4><?php the_time('j'); ?></h4>
</div>

So it would look like:

<!--
<div class="contentdate">
<h3><?php the_time('M'); ?></h3>
<h4><?php the_time('j'); ?></h4>
</div>
-->

Alter the code in your index.php and your home.php files in the Nightlife theme directory.

If that doesn't work or you have any questions let me know ^,^

(disclaimer: I'm not a coder or the creator of any of this stuff... just a fan who's trying to muck around and adapt this theme to my own site ^,^)

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <h2> <h3> <h4> <img> <div> <a> <em> <strong> <code> <ul> <ol> <li> <dl> <dt> <dd> <blockquote> <span> <table> <td> <tr> <caption> <th> <hr> <pre> <br> <p> <object> <param> <embed> <strike>
  • Lines and paragraphs break automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
2 + 2 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.