Genesis Pages Display Metadata Info when BuddyPress Is Installed

Community Forums Forums Design Tips and Tricks Genesis Pages Display Metadata Info when BuddyPress Is Installed

This topic is: not resolved

Tagged: 

This topic contains 5 replies, has 3 voices, and was last updated by  cspowers 6 months, 1 week ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #85101

    cspowers
    Participant
    Post count: 8

    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?

    Thanks
    Calvin

    #85111

    Summer
    Participant
    Post count: 1105

    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.


    #100304

    hortonsart
    Participant
    Post count: 11

    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' );
    #100311

    cspowers
    Participant
    Post count: 8

    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?

    Thanks
    Calvin

    #100471

    hortonsart
    Participant
    Post count: 11

    Correct. Copy the Genesis Framework page.php, rename to buddypress.php and add those 2 lines before ‘genesis();’

    #100491

    cspowers
    Participant
    Post count: 8

    Thanks again! Very helpful!

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.