How to edit the date of this theme?

Discussion in 'WordPress' started by korki4, Jul 24, 2010.

  1. #1
    korki4, Jul 24, 2010 IP
  2. Deacalion

    Deacalion Peon

    Messages:
    438
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #2
    This piece of code:
    
    <div class="date">
    		<span class="dateMonth"><?php the_time('M'); ?></span>
    		<span class="dateDay"><?php the_time('d'); ?></span>
    		<span class="dateYear"><?php the_time('Y'); ?></span>
    </div>	
    
    PHP:
    Needs to be removed from these files:
    • archive.php
    • category.php
    • index.php
    • page.php
    • search.php
    • single.php
    • tag.php
     
    Deacalion, Jul 24, 2010 IP
  3. bhuthecoder

    bhuthecoder Member

    Messages:
    245
    Likes Received:
    11
    Best Answers:
    1
    Trophy Points:
    43
    #3
    <div class="date">
    Code (markup):
    edit this div located in index.php file located in ur theme folder
     
    bhuthecoder, Jul 24, 2010 IP
  4. Deacalion

    Deacalion Peon

    Messages:
    438
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #4
    If you can't be bothered, just change this in style.css:
    
    
    .date{
    float:left;
    text-align:center;
    font-weight:800;
    margin: 0 10px 0 0;
    padding: 0 10px;
    border-right: 1px solid #ccc;
    color: #444;
    }
    
    Code (markup):
    To this:
    
    
    .date{
    display:none;
    }
    
    Code (markup):
     
    Deacalion, Jul 24, 2010 IP
  5. korki4

    korki4 Member

    Messages:
    276
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    30
    #5
    Thanks guys!
    i edited it out this
    <span class="dateMonth"><?php the_time('M'); ?></span>
    <span class="dateDay"><?php the_time('d'); ?></span>
    <span class="dateYear"><?php the_time('Y'); ?></span>

    because if i edit out the div class=date the post titles become irradical
     
    korki4, Jul 25, 2010 IP