Forums

Removing Date and Time from all pages and post (15 posts)

  1. kerry.peterson
    Member
    Posted 2 years ago #

    Hello there!

    I am having great deal of trouble removing all dates and times from my posts and pages. I am using a theme called "Holistic Tea House" and cannot find any _time or _date in the php files.

    I need HELP! Thank you!

  2. jonimueller
    Member
    Posted 2 years ago #

    Check index.php, page.php and single.php.

    You should see code like this:

    <?php the_date('','<h2>','</h2>'); ?>

    Just remove that and you should be fine. I don't like having dates on pages myself, but if I am blogging, I generally do have a date, but make it very unobtrusive, like a byline. :)

  3. kerry.peterson
    Member
    Posted 2 years ago #

    Hi Joni, thank you so much for your prompt response.
    I have search all those php files and cannot find code like that
    [the_date]. Is there anything else it could be?

  4. jonimueller
    Member
    Posted 2 years ago #

    Not that I know of. php the_date is what spits the post and page date out. There's really no other way for it to get on there. What does your index.php file look like?

  5. kerry.peterson
    Member
    Posted 2 years ago #

    could it have something to do with a permalink?

  6. jonimueller
    Member
    Posted 2 years ago #

    Well it would help if I could see your site.

  7. kerry.peterson
    Member
    Posted 2 years ago #

    http://voftwines.com.au/blog/?page_id=125

    Under the Sauvignon Blanc title - last modified...etc..

    Thank you for your help, much appreciated!

  8. jonimueller
    Member
    Posted 2 years ago #

    Hmm. That doesn't really look like WP code. It looks like some javascript I've seen since the 1990s, last modified. Are you using some plugin that might be putting that code there?

    I hate to ask again, but can you cut and paste just the part of your code that is between the .normaltext division in index.php? If you look there and find the <p><small> code, it's right after that. Looks like a plugin to me, but not sure until I see that template code. :)

  9. kerry.peterson
    Member
    Posted 2 years ago #

    mmm.. Sounds a bit tricky!! thanks again. I hope this is right;

    </div><!--CONTENT CATOGORY TAGS ENDS HERE-->
    <div class="normaltext"><!--CONTENT STARTS HERE -->
    <div><?php the_content(); ?></div>
    <div class="linkpages"><?php wp_link_pages(); ?></div>
    </div><!--CONTENT ENDS HERE -->
    <div><img src="<?php bloginfo('template_directory'); ?>/images/content_btmcurve.png" alt="" /></div>
    <div style="width: 618px;">
    <div class="content_readmore examples">
    <div><img src="<?php bloginfo('template_directory'); ?>/images/contentbtm_leftcurve.png" alt="" /></div>
    <div class="contentbtm_bg">
    <div class="readmore_btn" style="padding-right: 8px;">
    " rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>">Read More
    </div>

    </div>
    <div><img src="<?php bloginfo('template_directory'); ?>/images/contentbtm_rightcurve.png" alt="" /></div>
    </div>
    </div>
    <div><img src="<?php bloginfo('template_directory'); ?>/images/spacer.gif" alt="" /> </div>
    </div><!--CONTENT CATOGORY1 ENDS HERE-->

  10. jonimueller
    Member
    Posted 2 years ago #

    Weird. I don't see anything in that code that would be causing it. If you View Source (this is the output from your template above), you get this:

    </div><!--CONTENT CATOGORY TAGS ENDS HERE-->
    <div class="normaltext">
    <div><p id="top" />
    <h2><a href="http://voftwines.com.au/blog/?p=139">Sauvignon Blanc</a><a name="139" /></h2>
    <p><small>Last modified on 2010-03-05 06:10:45 GMT. <a href="http://voftwines.com.au/blog/?p=139#comments">0 comments</a>. <a href="#top">Top</a>. </small>

    That stuff between the small tags is what you need to stomp out. Also, it's calling the comments code and I don't see that anywhere in your template code either. Find THAT and the errant date/timestamp code is right there.

  11. jonimueller
    Member
    Posted 2 years ago #

    Are you using any plugins that might be placing that code?

  12. kerry.peterson
    Member
    Posted 2 years ago #

    i installed a plugin that is meant to remove the date and time. It didn't work so i deactivated it. Thanks for sticking with this one! :)

  13. jonimueller
    Member
    Posted 2 years ago #

    Look in some of your other templates and also in your functions.php file to see if that code string (starting with <small> is there.

  14. jonimueller
    Member
    Posted 2 years ago #

    Well it's bugging the daylights out of me too! :)

  15. kerry.peterson
    Member
    Posted 2 years ago #

    I cant find that code string anywhere.

    I am so confused and really appreciating your help.

Topic Closed

This topic has been closed to new replies.

About this Topic