WordPress.org

Ready to get started?Download WordPress

Forums

Edit the layout of a post (3 posts)

  1. willem169
    Member
    Posted 8 years ago #

    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">
    and
    <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.

  2. c_chana
    Member
    Posted 8 years ago #

    I'm not 100% sure, but I believe the date functions are held in the following file:

    wordpress_directory>wp-includes>functions.php

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

  3. willem169
    Member
    Posted 8 years ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags