• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
Appfinite

Appfinite

Premium WordPress Themes for The Genesis Framework

  • Themes
  • Blog
  • Tutorials and Resources
  • Forums
  • Contact Us

Blog – Remove Author and Show Excerpt

Home › Community Forums › Aspire Theme Support › Blog – Remove Author and Show Excerpt

  • This topic has 5 replies, 2 voices, and was last updated 5 years, 3 months ago by Wes.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • October 28, 2017 at 4:03 pm #22064
    erinok
    Customer

    Hello! I just added a blog to our site and I would like to do two things:

    1. Hide the author name.

    2. Show excerpts on the main blog page, instead of the full entry.

    https://www.womensleadershipconference.net/leadership-spotlight/

    Thank you for any help! Erin

    October 30, 2017 at 4:50 pm #22066
    Wes
    Moderator

    To remove the author name, add this to your functions.php –

    //* Customize the post info function
    add_filter( 'genesis_post_info', 'sp_post_info_filter' );
    function sp_post_info_filter($post_info) {
    if ( !is_page() ) {
    	$post_info = '[post_date] by [post_comments] [post_edit]';
    	return $post_info;
    }}

    If you ever want to add it back or rearrange the order, add this shortcode –

    [post_author_posts_link]

    To show excerpts (on the blog), take a look in your Genesis Theme Settings page in the Content Archives section. You can select a content limit or excerpt in the Display option.

    October 31, 2017 at 12:10 pm #22068
    erinok
    Customer

    Thank you so much! The excerpts are working, however, I added the code snippet to my functions.php to remove the author, and it is still there…

    https://www.womensleadershipconference.net/leadership-spotlight/

    October 31, 2017 at 5:49 pm #22076
    Wes
    Moderator

    Is that link your regular blog page or is that a custom page? If it’s the regular blog page, then I’m not sure why it’s not working. I just did another test with that same code and it seems to work.

    Let me know if you want me to login and try it.

    November 1, 2017 at 3:16 pm #22077
    erinok
    Customer

    Hi! I found out what was going on… I have Genesis Simple Edits installed and one of the defaults is to show the post author. As soon as I discovered and removed that, the name disappeared.

    Thank you again for all your help!

    November 2, 2017 at 5:17 pm #22084
    Wes
    Moderator

    Ah! I didn’t think about that. I was wondering if there was some custom code added somewhere.

  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.
Log In

Primary Sidebar

Search Forums

Affiliate Program

Looking to earn some money? Join our Affiliate program and earn 35% of every sale you refer. Top referrers earn 40-50%.

Join Now →

The Genesis Framework

All of our themes are designed for the Genesis Framework. You will need to purchase Genesis in order to use any of our themes.

Purchase Genesis

Hire a Web Developer

Need help setting up or customizing your website?

Contact Us →

Search Full Site

  • Buy Genesis!
  • Shopping Cart
  • Themes
  • My Account
  • Support Forums
  • Tutorials and Resources
  • Privacy Policy
  • Contact Us
  • Follow Us on Twitter

Copyright © 2023 · Appfinite · Built With The Genesis Framework