• Resolved daisyprofits

    (@daisyprofits)


    I am using the 2010 theme and like it very much as I’m able to customize the header and look of every site. I want my “blog” to look like a static website. How do I remove the dates from the posts? I’ve looked in the singlepost.php, page.php and just about everywhere else and can’t find the code to remove. Can you remove the date from this theme?

    Also are there any steps to follow to take out things like archives etc to make it look like a website?

    I’m not really familiar with css so please don’t throw big coding words and css stuff at me as I won’t know what you’re talking about! LOL!

    I just want my blogs to look like sites and WP is so plug and play with oh so many easy plugin options.

    Thanks ahead to anyone who helps me with this.

    Daisy

Viewing 15 replies - 1 through 15 (of 16 total)
  • I believe the date code is in the functions.php file.

    Sorry, to be more specific, the detailed date code is in the functions.php file, but if you want to completely remove it, the easiest way would be to remove <?php twentyten_posted_on(); ?> from loop.php.

    I’m not sure I understand your second question.

    Thread Starter daisyprofits

    (@daisyprofits)

    _Ze,

    Thank you for you response.

    There is no function.php that I could find on the side when I went into appearance-editor. I did find it in the loop.php, deleted it and still the date shows. I don’t know if there is a time delay on changes as I had a time delay change thing when I used 2010 weaver and the author thought I was crazy. I would change the header and it would not show the change but about an hour later it appeared????? I am using ie8. Could this have something to do with it and maybe I should reinstall ie7?

    I deleted the code, saved changes, went to the post, refeshed window and it still shows the date. I then opened a new window and went to the site and it still shows the date.

    I have just upgraded (???? – a relative term) to windows 7 and since then funky things have been going on with my computer. (I feel that the hype about windows 7 is way better than the actual product)

    If I give you my website url can you look at it and see if you see the date in the post? I’ll wait for your response.

    Thanks.

    Daisy

    A few things…

    • This has nothing to do with your operating system.
    • This has nothing to do with your browser version.
    • Windows 7 is a great OS…the best Microsoft has ever made.
    • The functions.php file is in the 2010 theme directory. /wp-content/themes/twentyten/functions.php
    • I highly recommend editing your theme files locally on your hard drive, then uploading them to your server via an ftp program. This way you can keep a copy of the original, in case you goof something up.

    If changes you are making to your theme files appear to be “delayed” on the live site, you either need to clear your browser cache, or you are using a caching plugin within WordPress.

    To clear your browser cache in IE, follow these instructions:

    • Hold down Shift and select the Refresh button on the toolbar
    • For Serious Clearing: If you are having problems clearing out the cache, then force it by choosing from the menu Tools > Internet Options> Temporary Files. Select Delete Temporary Files. You can choose the checkbox to delete all Internet files, but you might not want to as that will also clear all your passwords and cookies, but if you are having trouble viewing the changes on your page, go all the way.

    I would also recommend that you install at least one other browser, to assist you with testing your site. I recommend Firefox.

    Feel free to post your website url.

    Thread Starter daisyprofits

    (@daisyprofits)

    Hi again!

    Ok I cleared my cache and that didn’t work. I went into the theme editor on wp to delete the code. Should I go to my hosting file manager and delete it from there?

    I had the wp cache plugin on and just deactivated it.

    I have ff installed and looked at my site on that and the date still shows. I just don’t like ff, can’t get the hang of it.

    here is my url. Maybe you can look at the source code and tell me what is wrong. https://www.queenofheartscostumesite.com

    The front page is a static page so there’s no date. You’ll probably have to look at a post, but being as computer savvy as you are you probably can see that.

    Thank you so much for trying to help me, I’m at the point of banging my head against the wall on this.

    Daisy

    Edit loop.php and remove:

    <div class="entry-meta">
    				<?php twentyten_posted_on(); ?>
    			</div><!-- .entry-meta -->

    from:

    <?php /* How to display all other posts. */ ?>
    
    	<?php else : ?>
    		<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    			<h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
    
    			<div class="entry-meta">
    				<?php twentyten_posted_on(); ?>
    			</div><!-- .entry-meta -->
    Thread Starter daisyprofits

    (@daisyprofits)

    After removing that, this is what it looks like. Did I not take out enough?

    <?php /* How to display all other posts. */ ?>

    <?php else : ?>
    <div id=”post-<?php the_ID(); ?>” <?php post_class(); ?>>
    <h2 class=”entry-title”>” title=”<?php printf( esc_attr__( ‘Permalink to %s’, ‘twentyten’ ), the_title_attribute( ‘echo=0’ ) ); ?>” rel=”bookmark”><?php the_title(); ?></h2>

    <div class=”entry-meta”>

    </div><!– .entry-meta –>

    <?php if ( is_archive() || is_search() ) : // Only display excerpts for archives and search. ?>
    <div class=”entry-summary”>
    <?php the_excerpt(); ?>
    </div><!– .entry-summary –>
    <?php else : ?>

    Now that you have the cache plugin turned off, your changes to loop.php will be viewable. Notice that there are several instances of
    <?php twentyten_posted_on(); ?>
    within loop.php. Read the notations to figure out where each instance is displayed on the site.

    Thread Starter daisyprofits

    (@daisyprofits)

    so I would delete that in each place of the loop.php because I just noticed one still in the gallery?

    There are three “type-specific” loops in loop.php. If you don’t want dates to appear anywhere on your site, then remove all 3 instances of <?php twentyten_posted_on(); ?>. You’ll also need to remove the same code from single.php. Finally there’s a large block of code that needs to be removed from attachment.php:

    printf( __('<span class="%1$s">Published</span> %2$s', 'twentyten'),
    								'meta-prep meta-prep-entry-date',
    								sprintf( '<span class="entry-date"><abbr class="published" title="%1$s">%2$s</abbr></span>',
    									esc_attr( get_the_time() ),
    									get_the_date()
    								)
    							);
    Thread Starter daisyprofits

    (@daisyprofits)

    My head is swimming!!!

    Ok, I deleted this in 2 spots, still looking for the third. I will go to singlepost.php and find and delete.

    And I’ll go and find attachment.php and delte the above.

    Then if it all works, I have to figure out all the steps to do for the next site!!

    In other themes, all I did was delete the date and time code from singlepost.php. I thought this theme was supposed to be easier??

    Thread Starter daisyprofits

    (@daisyprofits)

    BINGO!!!

    I just went into singlepost.php and deleted the posted on code and VOILA the date is gone!!!

    Maybe I didn’t have to delete anything else just that in singlepost.php.

    Again I was looking for date and time not posted on. In my next site, I’ll start with deleting posted on in singlepost.php and see if just that works.

    I hope I didn’t delete any necessary code because unless it looks funky, I won’t know the difference. I know some html and an opening and closing tag, but css is greek to me!!! LOL!!

    Thank you _ZE and ESMI for your time and help I’be been working on this issue for 3 days and then finally decided to ask for help! You’ll probably see me again asking for help.

    Now I’m going off and do the Snoopy Happy Dance!!!

    Daisy

    Thread Starter daisyprofits

    (@daisyprofits)

    P.S.

    I went into another site and just deleted the posted on code in the singlepost.php and NO DATE!!

    Thanks again!

    Daisy

    You’re welcome. ??

    Hi, I’m trying to edit the twentyten_posted_on() function in functions.php. For items that are News items (a category) I am showing the date etc What I don’t want is for the date to be used as anchor text for the permalink – I just want to show the date. It is the sprintf element that has thrown me. What do I need to do to just have it show the date w/o the permalink?

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘2010 Theme and removing date’ is closed to new replies.