• Skip to main content
  • Skip to secondary menu
  • Skip to primary sidebar
  • Skip to footer
  • PSD to Genesis
  • Personalized Genesis Child Theme
  • Custom Website
  • Rainmaker
  • Genesis Customizations

Christoph Herr

Solutions For Your Online Business

  • Home
  • Articles
  • Recommendations
  • About
  • Praise
  • Contact
  • Schedule a Call

Removing the post info from the Whitespace Pro front page

Last updated on June 24, 2016 by Christoph Herr Leave a Comment

In a recent post I showed how to remove the post info from all posts and archive pages in Whitespace Pro.

I received the question how to remove the post info only from the front page.

In principal, you would need a pretty straight-forward if-statement to target only the front page of Whitespace Pro.

But yet again, Whitespace Pro has a little surprise in stock for us.

Remember, you have to use the priority of 7 in your function.
(The reason is explained in my previous post.)

The following function should do the trick and remove the post info from the front page:

<?php
//Don't include the opening php tag.


// Remove Post Info, from Whitespace Pro Front Page
function whitespace_remove_post_meta() {
    if (is_front_page()) {
        remove_action( 'genesis_entry_header', 'genesis_post_info', 7 );
        }
}
add_action ( 'genesis_entry_header', 'whitespace_remove_post_meta' );

Unfortunately, the result looks like this:

whitespace_pro_front_page_not_working

 

For some reason, using the function on the genesis_entry_header hook does not remove the post info on the first post.

The solution that worked for me, was to use the function in an earlier hook.

<?php
//Don't include the opening php tag.


// Remove Post Info, from Whitespace Pro Front Page
function whitespace_remove_post_meta() {
    if (is_front_page()) {
        remove_action( 'genesis_entry_header', 'genesis_post_info', 7 );
        }
}
add_action ( 'genesis_before_entry', 'whitespace_remove_post_meta' );

As you can see below, that completely removed the post info on the front page.

whitespace_pro_remove_post_info_front_page

Share this:

Share on X (Twitter)Share on FacebookShare on PinterestShare on LinkedInShare on Email

Filed Under: Code Snippets Tagged With: Whitespace Pro

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Getresponse Email Marketing WordPress Speed Test

Subscribe to my newsletter

Please enter your information here:

I hate spam. Your information is save.

Latest Posts

WordPress Black Friday & Cyber Monday Deals

Once again it´s time for WordPress Black Friday & Cyber Monday Deals. Like last year, I have … [Read More...] about WordPress Black Friday & Cyber Monday Deals

Cafe Pro - sticky menu and image logo - end result

Add a logo to the sticky menu of Cafe Pro

A member of the Studiopress forum asked how to show a logo in the after header menu (primary … [Read More...] about Add a logo to the sticky menu of Cafe Pro

Smart Passive Income Pro screenshot

Remove the featured image from the homepage of Smart Passive Income Pro

Studiopress just released a new child theme for the Genesis Framework, called Smart Passive Income … [Read More...] about Remove the featured image from the homepage of Smart Passive Income Pro

Footer

StudioPress Theme of the Month

Copyright © 2025 · Magazine Pro Theme On Genesis Framework · WordPress · Log in