WordPress.org

Ready to get started?Download WordPress

Forums

Which file to edit? (5 posts)

  1. djmccabe
    Member
    Posted 6 years ago #

    At the moment on our blog we have the date the post was made in text format just under the post title.

    However I want to change it to a pretty little image in the top right of the post ( see image)

    Which file do I want to be editing ?

    http://img113.imageshack.us/img113/6668/postwithdateff9.png

  2. erikmarcus
    Member
    Posted 6 years ago #

    I'm a novice at this and could be wrong, but I'm pretty sure you'll want to enter the Theme Editor and modify Main Index Template and also Single Post. The latter is for when only a single post is displayed. You would obviously want to introduce the same formatting you're doing for your Main Index Template.

  3. djmccabe
    Member
    Posted 6 years ago #

    Thanks for the reply Erik, but I think there is a little more to it than that.

    In main index I have this code:

    <h1><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h1>
    		<div class="descr"><?php the_time('F jS, Y') ?> by <?php the_author() ?><br /><br /></div>

    Which is obviously the title, date and author. I would need to put a new div in next to the title and have it display the month and day.

    Also there is no option within the design for "single post" or at least not in the theme I am using.

  4. moshu
    Member
    Posted 6 years ago #

    Download a theme that has a similar date gizmo and study how it was done. Apply it to your theme. It is too long a process to describe it here.

  5. Roy
    Member
    Posted 6 years ago #

    I just ripped that function out of a theme, check this one (stylesheet and index) to find out the trick.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags