WordPress.org

Forums

Twenty Fourteen
Remove author link from single post view, archives, categorise (7 posts)

  1. sandstar
    Member
    Posted 1 year ago #

    How do I remove the author link? I'd like to keep the date and comments, but remove the author link.

    Thanks!

  2. Euclides
    Member
    Posted 1 year ago #

    I dont see the author link? Do you have a screenshot?

  3. sandstar
    Member
    Posted 1 year ago #

    It's for a single post page. That is "standard" post type. It may be more proper to say the user / author of the post link.

    Here is a link to the screenshot

    Thanks!

  4. The author link has the class .byline so you can easily hide it with CSS:

    .entry-meta .byline {
    display: none;
    }

    An easy way to add custom CSS like this is to install the Jetpack plugin and activate the Custom CSS module. You could also install a standalone custom CSS plugin, or create a child theme.

  5. nicoblog
    Member
    Posted 10 months ago #

    Can you tell me where it is on the code ? i want to copy it to display it on pages as well.

  6. wp_clover
    Member
    Posted 8 months ago #

    If you use a twentyfourteen-child, then paste the code below in your function.php

    function twentyfourteen_posted_on() {
        if ( is_sticky() && is_home() && ! is_paged() ) {
            echo '<span class="featured-post">' . __( 'Sticky', 'twentyfourteen' ) . '</span>';
        }
    
        // Set up and print post meta information.
        printf( '<span class="entry-date"><a href="%1$s" rel="bookmark"><time class="entry-date" datetime="%2$s">%3$s</time></a></span>',
            esc_url( get_permalink() ),
            esc_attr( get_the_date( 'c' ) ),
            esc_html( get_the_date() )
        );
    }
  7. IanEricson
    Member
    Posted 8 months ago #

    Hello Everyone,
    Are there any other options for accomplishing this. I am using WP 4.0 and the Twenty Fourteen theme plus a child theme. Pretty frequently people may not want to display the author or post date on the category or individual post view.
    I tried both of those options but my skill level is not high enough yet. I did not break anything that I know of but also was unsuccessful in hiding the date and author. I also tried the Plugin titled "WP Author, Date and Meta Remover".

    In the meantime the solution is to use pages instead of posts.

    Are there are any other processes to remove the post date and author data?

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.