Support for Envato Buyers Forums OldCar Remove references to categories?

Viewing 4 reply threads
  • Author
    Posts
    • #2980
      coreymull
      Member

      Hi – I’d like to get rid of any reference or display of categories in this theme. Is there an easy way to do that? We just don’t need them, and I’ve found they confuse people.

    • #2981

      I’m not quite understand. Did you mean you want to remove the menu in the sidebar?

    • #3005
      coreymull
      Member

      Sorry – I mostly mean in the posts themselves – I don’t want categories to show up. So, right now, it says By: Author/in Category/Date – is there any way to remove the reference to categories?

    • #3007
      Musama
      Member

      yes you can remove that from the php file but we recomand to don’t remove it because it will make some problems if you want to upadate the theme to the next version

    • #3023

      Yes, you have to edit the php file, but you must also edit it again when you update the theme to next version,
      In theme-functions.php which is under “incudes” folder. Find the first function:

      /*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
        }
      }

      Replace it to:

      /*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 the_time(get_option('date_format'));?></span>
      <?php
        }
      }
Viewing 4 reply threads
  • You must be logged in to reply to this topic.