Support » Themes and Templates » Edit the layout of a post

  • Hi 🙂

    I am sure that this title might seem a little basic, but let me explain the problem I have. I want to modify the way a post (on the first page) is displayed. Now, I know a little HTML and CSS, so I opened a lot of files in a basic text editor.

    Everything is very clear, the way WordPress has been setup is very good. Files as header.php, footer.php and style.css are pretty basic.

    Now, when I want to modify the way the date (for example) appears, I just search in the sourcecode of the page in the browserwindow and I find terms like

    <div class="post" id="post-3">
    <div class="entry">

    I was wondering, if I just let my text editor search for all the .PHP files in het WordPress directory, to find a file that matches the criteria above, I can modify the way the date is being displayed.

    I find a lot of files where those div’s are being echo’d by PHP, but if I put an extra word in the source (for example) and refresh the page, no changes are made.

    Files I’ve been trough: attachment.php, page.php and a few other files. Can someone point me in the right direction? Thanks in advance, greetings from Kenya.

Viewing 2 replies - 1 through 2 (of 2 total)
  • I’m not 100% sure, but I believe the date functions are held in the following file:


    I quickly tried, but I couldn’t changes to the way the date is displayed, but i only moved two values around.

    Ah, thanks for your reply, but I already found where it should be. In wordpress_directory>wp-content>themes>theme_of_your_choise>index.php

    I figured it out, so thanks for all the help!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Edit the layout of a post’ is closed to new replies.