Skip to:
Content
Pages
Categories
Search
Top
Bottom

Layout problems with Genesis Themes

  • @cspowers

    Participant

    I have a sandbox site at rdugeeks.com
    I’m running WordPress 3.8, fresh install, just the initial content you get after an install.
    I’m running Genesi 2.02 with the Eleven Forty Pro child theme.

    I installed Buddy Press 1.9.1 and bbPress 2.5.3.

    When BuddyPress installed it created 3 pages Activty, Members, and Groups, just like it is supposed to. And when I navigate to those pages, the actually BuddyPress content displays just fine. There are some wonky formatting issues. But I’m not concerned with those right now.

    What I’m writing about is that on the pages associated with BuddyPress, there is a “By ” line at the top of the page just under the Title of the page. Also at the bottom of the page there is a “Filed Under” line. They look like Meta/Post Info from a blog post, but there’s no data in them. You can see an example at: http://rdugeeks.com/activity/ If I go to a non BuddyPress page, for example, http://rdugeeks.com/sample-page/ I do not see this extraneous info.

    Furthermore, If I go into BuddyPress settings and change the page associated to the Activity Stream to be the /sample-page, the extraneous info appears on the Sample page but not on the /activity page. So it seems to be something introduced by BuddyPress or some weird interaction between BuddyPress and Genesis. (For the record, I’ve tried 2 or 3 of the Genesis 2.0 “Pro” themes and have seen it on them as well.)

    When I tried the default Wordress themes (like Twenty Thirteen) I do not see the problem.

    So it seems to be specific to the interaction between BuddyPress and Genesis.

    When I compared the HTML between a BP page and the Sample Page, they seem identicle until you get to the article element in the main content wrapper:

    Here’s the HTML for the article element of the Sample Page:

    <article class="post-2 page type-page status-publish entry" itemscope="itemscope" itemtype="http://schema.org/CreativeWork">
    <header class="entry-header">
    <h1 class="entry-title" itemprop="headline">Sample Page</h1> 
    </header>
    <div class="entry-content" itemprop="text">

    Here’s the article HTML for the BP activity page:

    <article class="post-0 bp_activity type-bp_activity status-publish entry" itemscope="itemscope" itemtype="http://schema.org/CreativeWork">
    <header class="entry-header">
    <h1 class="entry-title" itemprop="headline">Sitewide Activity</h1> 
    <p class="entry-meta">
    <time class="entry-time" itemprop="datePublished"></time> By <span class="entry-author" itemprop="author" itemscope="itemscope" itemtype="http://schema.org/Person"><a href="http://rdugeeks.com/author/" class="entry-author-link" itemprop="url" rel="author"><span class="entry-author-name" itemprop="name"></span></a></span>  </p></header>
    <div class="entry-content" itemprop="text">
    etc. etc. 
Viewing 4 replies - 1 through 4 (of 4 total)
  • @evanvolgas

    Participant

    Hi. Create buddypress.php in your theme and add the following:

    <?php
    /**
     * Genesis Framework.
     *
     * WARNING: This file is part of the core Genesis Framework. DO NOT edit this file under any circumstances.
     * Please do all modifications in the form of a child theme.
     *
     * @package Genesis\Templates
     * @author  StudioPress
     * @license GPL-2.0+
     * @link    http://my.studiopress.com/themes/genesis/
     */
    
    //* This file handles BuddyPress pages
    
    //* Remove the entry footer markup (requires HTML5 theme support)
    remove_action( 'genesis_entry_footer', 'genesis_entry_footer_markup_open', 5 );
    remove_action( 'genesis_entry_footer', 'genesis_entry_footer_markup_close', 15 );
    
    //* Remove the entry meta in the entry footer (requires HTML5 theme support)
    remove_action( 'genesis_entry_footer', 'genesis_post_meta' );
    
    genesis();
    

    If you notice the breadcrumbs pointing to home and don’t want them to, add this

    add_filter ( 'genesis_home_crumb', 'sp_breadcrumb_home_link' ); // Genesis >= 1.5
    function sp_breadcrumb_home_link( $crumb ) {
    	return preg_replace('/href="[^"]*"/', 'href="whatever link you want"', $crumb);
    }
    
    add_filter( 'genesis_breadcrumb_args', 'sp_breadcrumb_args' );
    function sp_breadcrumb_args( $args ) {
    	$args['home'] = 'Whatever Text You Want';
    	$args['sep'] = ' / ';
    	$args['list_sep'] = ', '; // Genesis 1.5 and later
    	$args['prefix'] = '<div class="breadcrumb">';
    	$args['suffix'] = '</div>';
    	$args['heirarchial_attachments'] = true; // Genesis 1.5 and later
    	$args['heirarchial_categories'] = true; // Genesis 1.5 and later
    	$args['display'] = true;
    	$args['labels']['prefix'] = 'You are here: ';
    	$args['labels']['author'] = 'Archives for ';
    	$args['labels']['category'] = 'Archives for '; // Genesis 1.6 and later
    	$args['labels']['tag'] = 'Archives for ';
    	$args['labels']['date'] = 'Archives for ';
    	$args['labels']['search'] = 'Search for ';
    	$args['labels']['tax'] = 'Archives for ';
    	$args['labels']['post_type'] = 'Archives for ';
    	$args['labels']['404'] = 'Not found: '; // Genesis 1.5 and later
    return $args;
    }

    @cspowers

    Participant

    Thank you thank you thank you! However, it only removes the stuff at the bottom of the page. What do I need to add to the buddypress.php file to remove the “By” underneath the page title?

    @keithschmader

    Participant

    @cspowers try the following

    //* Remove the entry meta in the entry header (requires HTML5 theme support)
    remove_action( 'genesis_entry_header', 'genesis_post_info', 12 );

    I too am working on getting rid of the wonky layout issues, it is taking some time. The genesis connect plugin for buddypress is misleading in that it has been recently updated, but is worthless for the latest version of the genesis framework with the latest version of buddypress.

    Will keep you posted if I come across anything else as I work on this.

    @missybunnie

    Participant

    This is probably a really quick and dirty way to do it but I just pulled the loop from the loops file in the original and removed the entry header and footer part. It makes my buddypress page look like

    <?php
    /**
     * Genesis Framework.
     *
     * WARNING: This file is part of the core Genesis Framework. DO NOT edit this file under any circumstances.
     * Please do all modifications in the form of a child theme.
     *
     * @package Genesis\Templates
     * @author  StudioPress
     * @license GPL-2.0+
     * @link    http://my.studiopress.com/themes/genesis/
     */
    
    //* This file handles BuddyPress pages
    
    get_header();
    
    	if ( have_posts() ) : while ( have_posts() ) : the_post();
    
    			do_action( 'genesis_before_entry' );
    
    			printf( '<article %s>', genesis_attr( 'entry' ) );
    
    				do_action( 'genesis_before_entry_content' );
    				printf( '<div %s>', genesis_attr( 'entry-content' ) );
    					do_action( 'genesis_entry_content' );
    				echo '</div>'; //* end .entry-content
    				do_action( 'genesis_after_entry_content' );
    
    			echo '</article>';
    
    			do_action( 'genesis_after_entry' );
    
    		endwhile; //* end of one post
    		do_action( 'genesis_after_endwhile' );
    
    	else : //* if no posts exist
    		do_action( 'genesis_loop_else' );
    	endif; //* end loop
    
    get_footer();
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Layout problems with Genesis Themes’ is closed to new replies.
Skip to toolbar