Is it possible to remove the dates from the 20-10 theme blog posts?

by Johnny Danes Banned
15 replies
  • WEB DESIGN
  • |
My favorite theme to use is the plane-jane 20-10 theme. Does it allow me to remove blog post dates?




Thanks,
JD
#2010 #blog #dates #posts #remove #theme
  • Profile picture of the author allen12
    If you're using Wordpress, then there are plug-ins that are made for that purpose.
    {{ DiscussionBoard.errors[6798713].message }}
  • {{ DiscussionBoard.errors[6799073].message }}
    • Profile picture of the author Johnny Danes
      Banned
      Istvan,

      From the link you provided, here is the code: Is the text red what I should delete?

      if ( ! function_exists( 'twentyten_posted_on' ) ) :
      /**
      * Prints HTML with meta information for the current post—date/time and author.
      *
      * @since Twenty Ten 1.0
      */
      function twentyten_posted_on() {
      {{ DiscussionBoard.errors[6818533].message }}
  • Profile picture of the author clickbump
    [DELETED]
    {{ DiscussionBoard.errors[6799373].message }}
    • Profile picture of the author Istvan Horvath
      Originally Posted by clickbump View Post

      You can directly edit the post template to remove the post dates. Go to "Appearance > Editor > single.php" to find and remove the post date code.
      People that are clueless about WP and the 2010 theme... why are posting misleading advice??
      Show me the "date code" below!

      Code:
      <?php
      /**
       * The Template for displaying all single posts.
       *
       * @package WordPress
       * @subpackage Twenty_Ten
       * @since Twenty Ten 1.0
       */
      
      get_header(); ?>
      
      		<div id="container">
      			<div id="content" role="main">
      
      			<?php
      			/* Run the loop to output the post.
      			 * If you want to overload this in a child theme then include a file
      			 * called loop-single.php and that will be used instead.
      			 */
      			get_template_part( 'loop', 'single' );
      			?>
      
      			</div><!-- #content -->
      		</div><!-- #container -->
      
      <?php get_sidebar(); ?>
      <?php get_footer(); ?>
      Signature

      {{ DiscussionBoard.errors[6799813].message }}
  • Profile picture of the author Johnny Danes
    Banned
    Thanks everyone.
    {{ DiscussionBoard.errors[6799744].message }}
  • Profile picture of the author harshmaur
    Originally Posted by Johnny Danes View Post

    My favorite theme to use is the plane-jane 20-10 theme. Does it allow me to remove blog post dates?




    Thanks,
    JD
    Can you give me the link to your website i can give you the code which you can use to remove the dates and add it back whenever you require.
    {{ DiscussionBoard.errors[6805915].message }}
    • Profile picture of the author SteveJohnson
      Originally Posted by harshmaur View Post

      Can you give me the link to your website i can give you the code which you can use to remove the dates and add it back whenever you require.
      it's http://i-do-not-have-a-clue.com

      Post back here with your answers.
      Signature

      The 2nd Amendment, 1789 - The Original Homeland Security.

      Gun control means never having to say, "I missed you."

      {{ DiscussionBoard.errors[6809913].message }}
      • Profile picture of the author harshmaur
        @steve

        Why don't you get back to me when you have found a clue, then i will answer you.
        {{ DiscussionBoard.errors[6812375].message }}
        • Profile picture of the author SteveJohnson
          Originally Posted by harshmaur View Post

          @steve

          Why don't you get back to me when you have found a clue, then i will answer you.
          I have plenty of clues - #1, you didn't read the thread. #2, knowing the URL of the site is useless as all of the information necessary to provide an answer was given in the first and subsequent posts. #3, Istvan posted a link to the answer the day before you chimed in with your useless post.
          Signature

          The 2nd Amendment, 1789 - The Original Homeland Security.

          Gun control means never having to say, "I missed you."

          {{ DiscussionBoard.errors[6813950].message }}
          • Profile picture of the author harshmaur
            Originally Posted by SteveJohnson View Post

            I have plenty of clues - #1, you didn't read the thread. #2, knowing the URL of the site is useless as all of the information necessary to provide an answer was given in the first and subsequent posts. #3, Istvan posted a link to the answer the day before you chimed in with your useless post.
            First I would like to apologize for my words.

            what i wanted to say is that instead of editing the php code of the theme it is much easier to hide elements using css.

            I wanted the link so that i could find the exact css class and provide necessary changes.
            {{ DiscussionBoard.errors[6814232].message }}
            • Profile picture of the author SteveJohnson
              Originally Posted by harshmaur View Post

              First I would like to apologize for my words.

              what i wanted to say is that instead of editing the php code of the theme it is much easier to hide elements using css.

              I wanted the link so that i could find the exact css class and provide necessary changes.
              For my part, I didn't mean to come off as snarky. Actually, I did. I've been building up a such head of steam all morning reading all of the asinine idiotic posts in the help threads like, "PM me, I can fix" that I probably reacted a little strongly.

              Your CSS suggestion would work. It's better, though, if you're going to mess with theme files anyway, to just remove or disable the offending code and be done with it.

              Just as an aside, you still wouldn't need the website address (most marketers are a little touchy about giving out URLs), just look at a copy of Twenty-Eleven to find the selectors needed to hide the container.
              Signature

              The 2nd Amendment, 1789 - The Original Homeland Security.

              Gun control means never having to say, "I missed you."

              {{ DiscussionBoard.errors[6814568].message }}
              • Profile picture of the author harshmaur
                Originally Posted by SteveJohnson View Post

                For my part, I didn't mean to come off as snarky. Actually, I did. I've been building up a such head of steam all morning reading all of the asinine idiotic posts in the help threads like, "PM me, I can fix" that I probably reacted a little strongly.

                Your CSS suggestion would work. It's better, though, if you're going to mess with theme files anyway, to just remove or disable the offending code and be done with it.

                Just as an aside, you still wouldn't need the website address (most marketers are a little touchy about giving out URLs), just look at a copy of Twenty-Eleven to find the selectors needed to hide the container.
                Yes you are correct I could have looked for the CSS on my localhost itself but I reacted like a lazy person. So just went ahead and asked for the URL instead.
                Next time i will be finding the CSS myself for the basic themes.

                And also css is the beat way, if we edit the PHP and later on we want to revert back to the original it would be difficult, so that's why the CSS trick.
                {{ DiscussionBoard.errors[6815308].message }}
    • Profile picture of the author Johnny Danes
      Banned
      Originally Posted by harshmaur View Post

      Can you give me the link to your website i can give you the code which you can use to remove the dates and add it back whenever you require.
      No thank you.

      You must think I am stupid.........you don't need my link.
      {{ DiscussionBoard.errors[6818520].message }}
      • Profile picture of the author harshmaur
        Originally Posted by Johnny Danes View Post

        No thank you.

        You must think I am stupid.........you don't need my link.
        I am new to the forum and i dont think asking for a link is CRIME. I just want to help, I did setup on my localhost and here is the code that you need to replace.

        First go to the appearance => editor
        the style.css file will open
        find this bit of code

        Code:
        .entry-meta {
        color: #888;
        font-size: 12px;
        }
        Replace it with

        Code:
        .entry-meta {
        color: #888;
        font-size: 12px;
        display: none;
        }
        you see that i added display:none; to the code, this removes the container, if you want the container back in future, just remove that part.

        I hope that helped, i was just being lazy so thats why i asked for the url for your site.
        {{ DiscussionBoard.errors[6819299].message }}
  • Profile picture of the author clickbump
    1) Go to "Appearance > Editor" and open the file "loop-single.php" from the right sidebar listing of files.

    2) Scroll down a bit until you find this code branch:

    Code:
    <div class="entry-meta">
    <?php twentyten_posted_on(); ?>
    </div><!-- .entry-meta -->
    3) Place two forward slashes in front of the 2nd line like so:

    Code:
    <div class="entry-meta">
    <?php //twentyten_posted_on(); ?>
    </div><!-- .entry-meta -->
    4) Save the file
    Signature
    {{ DiscussionBoard.errors[6823989].message }}

Trending Topics