Support for Envato Buyers Forums OldCar Remove author and date information in a blog post

Viewing 12 reply threads
  • Author
    Posts
    • #7180
      bopol
      Member

      Hello. ThemVan.

      A client of mine asked if it s possible to remove the author and the date at the top of a blog post and on the overview of the blog posts as well. Their opinion is that it is not necessary to show this information.

      My question to you is, is this possible and where can I do the change to solve the request of my client.

      Kind regards,
      Bob van der Pol.

    • #7181

      Hi

      You can simply add the following custom CSS into custom.css or “OldCar options > Custom Code > Custom CSS” to hide the post date information.

      .blog-article-info{display:none;}

      Thanks

    • #7182
      bopol
      Member

      Hello Badjohnny.

      Thanks for the quick answer, help and solution.

      It works! 🙂

      Kind regards,
      Bob van der Pol.

    • #7186

      That’s great!

      • #7315
        jdevnani
        Member

        Hi BadJonny,
        Is it possible to hide the author and date, but keep just the category?

        Thanks,
        Jess

    • #7319

      Hi

      Edit the theme-functions.php file, find the following codes

      /*Post meta info*/
      if( !function_exists( 'van_posted_on') ){
        function van_posted_on(){
      ?>     
         <span class="blog-article-info"><a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) );?>"><?php printf(__('By %s','OldCar'),get_the_author());?></a> / <?php printf( __( 'in %2$s', 'OldCar' ), 'entry-utility-prep entry-utility-prep-cat-links', get_the_category_list( ', ' ) ); ?> / <?php the_time(get_option('date_format'));?></span>
      <?php
        }
      }

      Change to

      /*Post meta info*/
      if( !function_exists( 'van_posted_on') ){
        function van_posted_on(){
      ?>     
         <span class="blog-article-info"><?php printf( __( 'in %2$s', 'OldCar' ), 'entry-utility-prep entry-utility-prep-cat-links', get_the_category_list( ', ' ) ); ?></span>
      <?php
        }
      }
      

      Thanks

    • #7324
      jdevnani
      Member

      Great thank you!!

    • #7331

      It’s my pleasure!

    • #8087
      jdevnani
      Member

      Hi again BadJonny,
      I’ve added a portfolio page to my site (http://pinkplankton.com/photography) and the date appears at the top when you click on an image. Do you know how I can just have the category instead?

      Thanks,
      Jess

    • #8094

      Hi

      As same as my reply in your other topic, just let me know your WP login details with private reply, I will change the code for you.

      Thanks

    • #8122
      jdevnani
      Member
      This reply has been marked as private.
    • #8126

      Changed. Please check.

    • #8129
      jdevnani
      Member

      awesome thanks!

    • #8132

      It’s my pleasure!

Viewing 12 reply threads
  • You must be logged in to reply to this topic.