• Resolved madtripper

    (@madtripper)


    Currently my theme is showing posts laid out this way:

    Post Title
    (content)
    Add comment | Date

    I would like to change it so that my posts are laid out like this:

    Post Title
    Posted by | Date, Time
    (content)
    Categories: xyz
    Add comment | Permalink

    I’m not even sure where I go to make these changes. I’m pretty sure it’s index.php though. Any advice (greatly appreciated)?

    I’m using a modified Blix theme and my site is girltrip.org

Viewing 4 replies - 1 through 4 (of 4 total)
  • It looks like your post content is in an area starting with

    <div class="entry">

    Add an author template tag:

    Posted by <?php the_author_posts_link() ?> |

    Look toward the end where the date code
    <?php the_date(); ?> and delete it. Add <?php the_time('F j, Y'); ?> at <?php the_time('g:i a'); ?> code right under the <div class="entry"> and the post title and before the <?php the_content(__('(more...)')); ?>

    so it should now read:

    (Posted by | Date, Time): Posted by <?php the_author_posts_link() ?> | <?php the_time('F j, Y'); ?> at <?php the_time('g:i a'); ?>

    (content): <?php the_content(__('(more...)')); ?>
    (categories): <?php the_category(', ') ?>

    Then look for “add a comment” and place a pipe “|” and add <?php the_permalink(); ?> for the permalink.

    If you want to really understand this, you’ll want to read the Codex and understand Template Tags . You’ll soon get the hang of how to place different information within your posts. Also, each “tag” might have a different “div class” or “div id” and that just tells the browser how each tag should look. I.e., maybe you wante the date and time to appear in bright red. You’ll have to define that in your css stylesheet. HTH

    Thread Starter madtripper

    (@madtripper)

    Thank you. This helped a lot and I think I’m getting somewhere. I decided not to post the author’s name, so scratch that. I just have to resolve the following:

    1. The date is in italics and the time showing as 08:00pm. I would like to figure out how to change the italics. I would also like to get rid of the 0 before the 8 and put a space before pm. I scoured my CSS but didn’t find anything.

    2. The permalink was a mess. When I pasted in the code, it entered the URL for the permalink, and it wasn’t linked at all. Is there another way to permalink?

    Thanks for your help!

    Problem #1:
    http://codex.wordpress.org/Formatting_Date_and_Time
    explains how to format your date and time.

    Problem #2:
    Check how your permalinks are done under Options, Permalinks on the dash.

    Thread Starter madtripper

    (@madtripper)

    Thanks very much 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Changing the Layout on a Post (Blix)’ is closed to new replies.