Tagged: posts
- This topic has 6 replies, 3 voices, and was last updated 9 years, 10 months ago by Juha_52.
-
AuthorPosts
-
April 25, 2014 at 6:03 pm #27439pennsavageMember
Hello all!
I am using
.entry-date {
display: none;
}To omit time and date stamps from my post titles. But now it reads “posted on by penn savage” and I can’t figure out how to get rid of the ‘on’.
April 25, 2014 at 11:04 pm #27488SakinKeymaster@pennsavage: If you add that css in “Appearance => theme Options => Custom CSS box then it should hide both entry meta. Can you post in your site URL and show me which section is not being hide.
April 26, 2014 at 3:26 am #27518pennsavageMemberSure its soulsharpen.com
I want to keep the “by penn savage” part, I just wanted to eliminate the “on” like I have the date and time.
April 26, 2014 at 12:45 pm #27573SakinKeymaster@pennsavage: We cannot delete just on from custom css box. But we can hide whole text Posted on by add in the following css in “Appearance => Theme Options => Custom CSS” box.
.entry-header .entry-meta span:first-child { display: none; }
The only way to delete just on and date will be by building child theme. If you build child theme then you can remove the above css and the css you have added.
1. Create functions.php file in your child theme and then copy function catchevolution_posted_on from catchevolution-functions.php file to your child theme functions.php file and edit it. So, the code in your child theme functions.php file will be as following<?php /** * Prints HTML with meta information for the current post-date/time and author. * Create your own catchevolution_posted_on to override in a child theme * * @since Catch Evolution 1.0 */ function catchevolution_posted_on() { printf( __( '<span class="sep">Posted </span><span class="by-author"> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="%5$s" title="%6$s" rel="author">%7$s</a></span></span>', 'catchevolution' ), esc_url( get_permalink() ), esc_attr( get_the_time() ), esc_attr( get_the_date( 'c' ) ), esc_html( get_the_date() ), esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), esc_attr( sprintf( __( 'View all posts by %s', 'catchevolution' ), get_the_author() ) ), get_the_author() ); }
2. Create child theme style.css as https://gist.github.com/catchthemes/11313660#file-style-css
June 28, 2014 at 5:54 pm #36817Juha_52ParticipantHi!
Thank you for the CSS:
.entry-header .entry-meta span:first-child { display: none; }
I was able the remove “posted on” (and leave the date).Is there CSS also for removing “Posted in” from the homepage post? I want to leave category name, but remove the “posted in” text as my webpages will in Finnish language.
I’m using Catch Evolution Pro -theme. The website is not public yet, but the URL is: http://sapa.fi/SAPA_WP/
Thanks!
June 28, 2014 at 11:37 pm #36884SakinKeymaster@Juha_52: Try adding following css in “Appearance => Theme Options => Custom CSS” box.
.entry-meta .entry-utility-prep { display: none; }
June 29, 2014 at 2:32 am #36923Juha_52ParticipantIt worked fine, thanks!
-
AuthorPosts
- The topic ‘"Posted on by" getting rid of the 'on'’ is closed to new replies.