[resolved] There is not much code in index.php, single.php (6 posts)

  1. sbscheema
    Posted 5 years ago #

    I am using wordpress theme "twenty ten" on site.


    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.

  2. esmi
    Forum Moderator
    Posted 5 years ago #

    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.

  3. Michael
    Forum Moderator
    Posted 5 years ago #

    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()'

  4. sbscheema
    Posted 5 years ago #

    Well I have made required changes in "Comments Form" but still cant find how to remove "Posted in 'uncategorized'" from all the posting.

    Please help

  5. esmi
    Forum Moderator
    Posted 5 years ago #

    Now look in twentyten_posted_in() within functions.php.

  6. sbscheema
    Posted 5 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic