January 13, 2014 at 10:01 pm #85101
I've installed a fresh install of the latest WordPress, Genesis, and the Eleven Forty Pro theme. Looks great. Not a single problem and it looks beautiful
Installed BuddyPress, latest version. As part of the install, BuddyPress creates three pages for the activity stream, member directory, and group directory.
All the BuddyPress related content displays, mostly OK. There's a couple of size/alignment issues, but I think I can hack the style sheets and tweak those issues.
But here's the deal. On any page that is assigned to be a BuddyPress related page, you see "By " at the top of the page under the title, almost like it is a post info line. There's no name after "By ". Likewise, at the bottom of the page there is a line that says "Filed under". No content after that.
I have created a new page called Test. in WP and navigated to it and these things do not show up. They do not show up on the default Sample page either. But if go into the BuddyPress settings and set the Test page as the page to display the Activity Stream (for example), then the "By " and "Filed Under " lines appear.
I'd been playing around with several of the * Pro themes, and I definitely noticed this same problem on several of them.
When I look at the html source there definitely seems to be code being inserted for a post entry header.
Any guidance on how to debug this?
CalvinJanuary 14, 2014 at 12:28 am #85111
Sounds like Genesis is generating the extra entry header information for Buddypress that it does for certain custom post type archives. This is a problem I've been looking for help with since last July, so hopefully if someone comes up with a solution for you, it'll work for me as well.
April 14, 2014 at 3:50 pm #100304
To fix this, create a new file 'buddypress.php' based off of the Genesis Frameworks page.php and add the following code to it:
// Removes the entry-header's entry-meta remove_action( 'genesis_entry_header', 'genesis_post_info', 12 ); //Removes the entry-meta in the footer of the post remove_action( 'genesis_entry_footer', 'genesis_post_meta' );April 14, 2014 at 4:27 pm #100311
Many thanks for the tip. But I'm a newbie to this so just to make sure I understand correctly. are you saying I should make a copy page.php and call it buddypress.php an then add those new lines to it? Or are you saying create a brand new file in the same directory as page.php called buddypress.php and add those lines to it?
CalvinApril 15, 2014 at 9:22 am #100471
Correct. Copy the Genesis Framework page.php, rename to buddypress.php and add those 2 lines before 'genesis();'April 15, 2014 at 10:05 am #100491
Thanks again! Very helpful!
You must be logged in to reply to this topic.