Support for Envato Buyers › Forums › OldCar › Remove author and date information in a blog post
- This topic has 13 replies, 3 voices, and was last updated 9 years, 8 months ago by FocuxTheme Support.
-
AuthorPosts
-
-
January 12, 2015 at 11:00 pm #7180bopolMember
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. -
January 13, 2015 at 12:05 am #7181FocuxTheme SupportKeymaster
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
-
January 13, 2015 at 2:01 am #7182bopolMember
Hello Badjohnny.
Thanks for the quick answer, help and solution.
It works! 🙂
Kind regards,
Bob van der Pol. -
January 13, 2015 at 10:25 pm #7186FocuxTheme SupportKeymaster
That’s great!
-
January 24, 2015 at 9:36 pm #7319FocuxTheme SupportKeymaster
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
-
January 25, 2015 at 4:16 am #7324jdevnaniMember
Great thank you!!
-
January 26, 2015 at 12:11 am #7331FocuxTheme SupportKeymaster
It’s my pleasure!
-
April 19, 2015 at 1:07 pm #8087jdevnaniMember
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 -
April 20, 2015 at 2:42 pm #8094FocuxTheme SupportKeymaster
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
-
April 24, 2015 at 4:28 am #8122jdevnaniMemberThis reply has been marked as private.
-
April 24, 2015 at 9:57 pm #8126FocuxTheme SupportKeymaster
Changed. Please check.
-
April 25, 2015 at 1:46 pm #8129jdevnaniMember
awesome thanks!
-
April 26, 2015 at 1:46 am #8132FocuxTheme SupportKeymaster
It’s my pleasure!
-
-
AuthorPosts
- You must be logged in to reply to this topic.