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, 10 months ago by
FocuxTheme Support.
-
AuthorPosts
-
-
January 12, 2015 at 11:00 pm #7180
bopol
MemberHello. 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 #7181
FocuxTheme Support
KeymasterHi
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 #7182
bopol
MemberHello Badjohnny.
Thanks for the quick answer, help and solution.
It works! 🙂
Kind regards,
Bob van der Pol. -
January 13, 2015 at 10:25 pm #7186
FocuxTheme Support
KeymasterThat’s great!
-
January 24, 2015 at 9:36 pm #7319
FocuxTheme Support
KeymasterHi
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 #7324
jdevnani
MemberGreat thank you!!
-
January 26, 2015 at 12:11 am #7331
FocuxTheme Support
KeymasterIt’s my pleasure!
-
April 19, 2015 at 1:07 pm #8087
jdevnani
MemberHi 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 #8094
FocuxTheme Support
KeymasterHi
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 #8122
jdevnani
MemberThis reply has been marked as private. -
April 24, 2015 at 9:57 pm #8126
FocuxTheme Support
KeymasterChanged. Please check.
-
April 25, 2015 at 1:46 pm #8129
jdevnani
Memberawesome thanks!
-
April 26, 2015 at 1:46 am #8132
FocuxTheme Support
KeymasterIt’s my pleasure!
-
-
AuthorPosts
- You must be logged in to reply to this topic.