Tagged: 

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #27439
    pennsavage
    Member

    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’.

    #27488
    Sakin
    Keymaster

    @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.

    #27518
    pennsavage
    Member

    Sure 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.

    #27573
    Sakin
    Keymaster

    @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

    #36817
    Juha_52
    Participant

    Hi!

    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!

    #36884
    Sakin
    Keymaster

    @Juha_52: Try adding following css in “Appearance => Theme Options => Custom CSS” box.
    .entry-meta .entry-utility-prep { display: none; }

    #36923
    Juha_52
    Participant

    It worked fine, thanks!

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘"Posted on by" getting rid of the 'on'’ is closed to new replies.