WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] There is not much code in index.php, single.php

[Resolved] There is not much code in index.php, single.php

  • sbscheema
    Member

    @sbscheema

    I am using wordpress theme “twenty ten” on site.

    http://Www.cruxfoods.com

    1. I want to change Text “Leave Comment” to “Leave Message”
    2. Remove Date Published
    3. Remove Published by

    I am trying to find all this information in my index.php and single.php and also .css files but there not much in index.php file to change.

    My Index.php files code is copied below

    [Code moderated as per the Forum Rules. Please use the pastebin]

    Please help how do I make the changes.

Viewing 5 replies - 1 through 5 (of 5 total)
  • esmi
    Forum Moderator

    @esmi

    Don’t edit the Twenty Ten theme. Your changes will be over-written the next time you upgrade WordPress. For this reason, it is recommended that you consider creating a child theme for your customisations. Once your child theme is active, we should be able to help with the customisation.

    Michael
    Forum Moderator

    @alchymyth

    a lot of the code, where you want to make changes, is in loop.php, loop-single.php, loop-page.php and functions.php.

    for instance, look for the function ‘twentyten_posted_on()’

    sbscheema
    Member

    @sbscheema

    Well I have made required changes in “Comments Form” but still cant find how to remove “Posted in ‘uncategorized’” from all the posting.

    http://www.cruxfoods.com
    Please help

    esmi
    Forum Moderator

    @esmi

    Now look in twentyten_posted_in() within functions.php.

    sbscheema
    Member

    @sbscheema

    I removed the “get_the_category()” from loop.php and it removed category from home page but category was still showing up on individual post (if you click on post title) Then I removed the function twentyten_posted_in() as esmi said. It gave me error on that page and was pointing to “loop-single”…so i removed the function twentyten_posted_in() from loop-single.php as well.

    Its done. Thanks for wonderful support.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Resolved] There is not much code in index.php, single.php’ is closed to new replies.