Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi Nick

    I found this response on a previous forum thread:

    “you could either hide the full post byline with a line of CSS:

    .post-byline { display: none; }

    or just the author name:

    .post-byline .author { display: none; }

    But then the by will still be visible because you can’t trigger the text because there is no CSS class and it’s not wrapped within an HTML element.”

    In order to get rid of the by word as well, you would need to remove these lines of code instead:

    <?php _e(‘by’,’hueman’); ?>
    <span class=”vcard author”>
    <span class=”fn”><?php the_author_posts_link(); ?></span>
    </span> ·

    end forum text——

    Not sure if this helps??

    The above info is correct.

    If you only want to use CSS, you could be cheeky and add a negative left margin that will hide the “By” text, like so:

    .single .post-byline {
        margin-left: -24px;
    }

    Then you can remove the author name as suggested above using this:

    .single .post-byline .author {
        display: none;
    }

    Add the CSS code to your Child Theme style.css file, or using a Custom CSS plugin.

    Hope this helps.

    • This reply was modified 9 years, 7 months ago by ThemeSumo.
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘author bio on single post’ is closed to new replies.