WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] remove last modified and comments (6 posts)

  1. eriksstrals
    Member
    Posted 5 years ago #

    I am trying to figure out how to remove the last modified, date, and comments link that appears on all my posts on each page.

    I am using the decoder theme, and have went through every .php file and tried finding and deleting the code do do such, but no matter what I do, they are always there.

    Also, I would like to delete the link which appears above the post which directs you to the post itself...

    I've messed with this for at least 2 hours but can't for the life of me figure out where the hell I need to look to delete the correct code.

    Here is the theme:
    http://webdemar.com/wordpress/wordpress-theme-decoder-09/

    I know I've done it in the past deleting this stuff using the wordpress default theme, but if anyone can help me do with this this theme I would love you forever :P... Thanks

  2. buddha trance
    Member
    Posted 5 years ago #

    In index.php, page.php, single.php, archive.php (check other files for that too) look at the meta div

    <div class="meta">
    <span class="meta-date"><?php the_time('l, F jS, Y'); ?></span>
    <span class="meta-categories"><?php the_category(', '); ?></span>
    <span class="meta-comments"><?php comments_popup_link(__('No Comments'), __('1 Comment'), __('% Comments')); ?></span>
    </div>

    This one includes the date, the category and the comments link. I don't see the last modified, unless that's a plugin that will overwrite the date and use the same link.

    For the link above the post, that is the title, look for

    <h3 class="post-title">
    <a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a>
    </h3>
  3. eriksstrals
    Member
    Posted 5 years ago #

    I tried doing this, but it didn't do anything... In fact, I even tried deleting the whole archive.php, single-post.php, and other .php files, yet it didn't even do anything whatsoever to the page...

    The only ones that change anything if I delete code are the page, header, and footer .php files... But since those have nothing to do with the posts or last modified thing inside the posts, that doesn't help me.

    Does anyone else know why changing these php files don't do what its supposed to? what else can I do to try and fix this problem.

  4. webdemar
    Member
    Posted 5 years ago #

    Hey Erik,

    I even tried deleting the whole archive.php, single-post.php, and other .php files, yet it didn't even do anything whatsoever to the page

    That's just impossible! Just try to change something in the index.php, then look at your blog home page.

    For example remove the date span:

    <span class="meta-date"><?php the_time('l, F jS, Y'); ?>

    Anyway, please provide an URL to your blog please. So we know what we're talking about ;-)

    Cheers,
    Simon [webdemar]

  5. eriksstrals
    Member
    Posted 5 years ago #

    Thanks a lot for all your help, but I actually figured it out... The problem I was having was I forgot I was using the inline posts plugin, which I guess replaces PHP files in the theme... I don't really know much about php and all that but since I know enough about programming, I managed to figure out how to change the inlineposts.php file to get rid of the stuff I wanted too...

    I don't know if that's bad programming on the part of the plugin maker to bypass the index.php or if its just how things work with websites, but I'm glad I'm over with this.

    Thanks again for your help!

  6. bmose14
    Member
    Posted 4 years ago #

    Thanks for the update Erik. I had the same problem, and this helped tons!

Topic Closed

This topic has been closed to new replies.

About this Topic