WordPress.org

Forums

Remove "Posted by " on (7 posts)

  1. elena. perin@teletu.it
    Member
    Posted 12 months ago #

    Hi there,

    I am creating my first site with wordpress using On-line Marketer theme.
    I wish to build it more like a web site than a blog and I would like to remove from pages and articles "posted by" "on".

    Can you tell me how to delete them?

  2. potentweb
    Member
    Posted 12 months ago #

    Look for <?php the_author_posts_link(); ?>

  3. elena. perin@teletu.it
    Member
    Posted 12 months ago #

    In which Page pls. ? I looked in index.php page.php single.php I can't find it.

    Thanks

  4. elena. perin@teletu.it
    Member
    Posted 11 months ago #

    This is what I could find in the funciotns.php template

    <?php comment_author_link(); ?>

    Might this be the one??

    Thanks to let me know

  5. alchymyth
    The Sweeper & Moderator
    Posted 11 months ago #

    the theme seems to be cloned on Twenty Eleven;

    for index posts, see content.php, for single posts see content-single.php:

    <div class="entry-meta meta">
    			<?php onlinemarketer_posted_on(); ?>
    		</div><!-- .entry-meta -->

    to get rid of the full 'posted on' line, remove this whole section;
    or goto functions.php and find this function from line 235, starting with:

    function onlinemarketer_posted_on() {

    you can remove from that function what you don't want.

  6. elena. perin@teletu.it
    Member
    Posted 11 months ago #

    Thanks a lot I will try

    I found the function you mentioned I hope so ! I need to remove "Posted on" and " by "

    function onlinemarketer_posted_on() {
    printf( __( '<span class="sep">Posted on </span><time class="entry-date" datetime="%3$s" pubdate>%4$s</time><span class="byline"> <span class="sep"> by </span> <span class="author vcard"></span></span>', 'online-marketer' ),
    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', 'online-marketer' ), get_the_author() ) ),
    esc_html( get_the_author() )

  7. elena. perin@teletu.it
    Member
    Posted 11 months ago #

    Great I did it !!! thanks thanks a lot your help has been great ! Now it works !

Reply

You must log in to post.

About this Topic