Tagged: translate
- This topic has 24 replies, 4 voices, and was last updated 7 years, 9 months ago by Sakin.
-
AuthorPosts
-
November 19, 2015 at 7:47 pm #79907truewpMember
I want to hide author and date posted but still show the tags for the posts, is that possible?
November 19, 2015 at 10:14 pm #79932ShayCMemberSorry to encroach on your thread truewp, but I’m not sure how to submit a question. my site is called http://www.exathlete.com and I’m trying to get the link within a post to show a different color than the main text. I have tried the theme options content color change but its not working. please help?
November 19, 2015 at 11:40 pm #79939SakinKeymaster@truewp: Yes you can add the following css in “Appearance => Customize => Theme Options => Custom CSS” box:
.entry-header .entry-meta { display: none; }
November 19, 2015 at 11:46 pm #79941SakinKeymaster@ShayC: You can check this screenshot which shows how to post questions https://www.pinterest.com/pin/548594798338119057/
There is not much color option in Simple Catch Free theme. To change the link color, you can change the color code in the following css and then add it in “Appearance => Theme Options => Custom CSS” box:
a { color: #000; }
November 20, 2015 at 12:41 pm #79981truewpMemberThat’s great! Can I also change the words/translation of “Tagged” and remove “Posted in ….” and “Leave a reply”?
November 20, 2015 at 8:09 pm #80004SakinKeymaster@truewp: You can remove posted in by add in the following css in “Appearance => Theme Options => Custom CSS Box”
.entry-meta .in-category { display: none; }
In which language you are translating theme and how are you doing that. To change that text Tagged, you need to change through translation file .mo and .po files
I don’t get it which Leave a Reply you want to hide. Can you show me the URL.
November 23, 2015 at 7:56 pm #80139ShayCMemberThank you much! worked like a charm.
http://www.exathlete.comNovember 24, 2015 at 12:11 am #80156December 2, 2015 at 1:37 pm #80510truewpMemberActually, is there no way to remove it totally from the code? I want to hide the date from Google and the author from hackers.
December 3, 2015 at 5:15 am #80546SakinKeymaster@truewp: If you don’t want to hide and totally remove it from code level then you need to build child theme. For child theme refer to http://catchthemes.com/blog/create-child-theme-wordpress/ and edit the code. I see that you are using Simple Catch theme so, you need to copy
content.php
in file in your child theme and remove the following code:<ul class="post-by"> <li class="no-padding-left"><a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>" title="<?php echo esc_attr(get_the_author_meta( 'display_name' ) ); ?>"><?php _e( 'By', 'simple-catch' ); ?> <?php the_author_meta( 'display_name' );?></a></li> <li><?php $simplecatch_date_format = get_option( 'date_format' ); the_time( $simplecatch_date_format ); ?></li> <li class="last"><?php comments_popup_link( __( 'No Comments', 'simple-catch' ), __( '1 Comment', 'simple-catch' ), __( '% Comments', 'simple-catch' ) ); ?></li> </ul>
Note: this code in only for Simple Catch Theme. From next time, please post in proper theme forum. This is Adventurous Theme forum.
February 15, 2017 at 7:59 pm #109826ThierryParticipantHello,
I want to do the same thing : Hide author and date but not tags in my articles.
I am using WP 4.7.2
When I check the appropriate boxes in the article screen options area on the top, it has no effect.Is there another setting that I am missing ? ……
Thanks !
ThierryFebruary 16, 2017 at 8:10 am #109880February 16, 2017 at 3:04 pm #109948ThierryParticipantFebruary 16, 2017 at 3:41 pm #109954SakinKeymaster@thierry: Try adding the following css in “Appearance => Customize => Additional CSS”
.entry-meta .by-author { display: none; }
February 16, 2017 at 4:03 pm #109956ThierryParticipantI can’t close comments either …..
February 16, 2017 at 4:12 pm #109958ThierryParticipantThank you Sakin for your reply.
I have tried, leaving the /* and */ after,
but there is no changeFebruary 16, 2017 at 4:43 pm #109964SakinKeymaster@thierry: you shouldn’t add
/* and */
You should remove that and just add
.entry-meta .by-author { display: none; }
February 16, 2017 at 5:45 pm #109980ThierryParticipantGreat !! It works ! 🙂
Can you please also help me to remove the date
and to close comments on articles (remove the “leave a reply”) ?Thanks !!
February 16, 2017 at 5:58 pm #109985SakinKeymaster@thierry: You can replace earlier css with the following
.entry-meta .by-author, .entry-meta .on-date { display: none; }
For comment, you can just disable comment in from Comment settings. If you want to disable comment is all new posts, then you can go to “Settings => Discussion” and uncheck “Allow people to post comments on new articles” and “Allow link notifications from other blogs (pingbacks and trackbacks) on new articles”. Check this screenshot https://www.pinterest.com/pin/548594798333127973/
But for the old posts, you need to edit that post and check “Discussion” option in screen options and then uncheck “Allow comments.” and “Allow trackbacks and pingbacks on this page.”. Check this screenshot https://www.pinterest.com/pin/548594798329843253/
February 16, 2017 at 11:36 pm #110005ThierryParticipantThank you very much for your help !
Everything works as you described,
except the situation of this screenshot for old posts :
https://www.pinterest.com/pin/548594798329843253/In fact, when I check “discussion” option, I get a “comment” box,
but not with the options you mentioned.
I only get a button that says : click here if you want to write a comment.But it’s not too bad if I can disable comments on new articles with the general discussion setting :
I just need to decide before publishing the article that I won’t want comments …Thanks again !
-
AuthorPosts
- The topic ‘Hide author but not tags’ is closed to new replies.