Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] Wordstrap Theme-Buddypress – 99% compatible out of the box !

Viewing 7 replies - 1 through 7 (of 7 total)
  • Avatar of @mercime
    @mercime
    Keymaster

    @mercime

    @valuser Which wordstrap theme are you referring to? The issue could probably be due to how the page title is rendered by your theme. Is the theme using the_title or a theme-specific template tag?

    If it’s a theme-specific template tag causing the issue, you can most possibly resolve this by creating a template specifically for the Groups Directory page which addresses the page title issue http://codex.buddypress.org/theme-development/theme-compatibility-1-7/template-hierarchy/

    Avatar of valuser
    valuser
    Participant

    @valuser

    Many thanks for your reply.

    The theme is that at http://wordpress.org/themes/wordstrap

    Have taken your advice and am almost there! (i think !)

    I just have not altered the index.php file correctly – (your advice very welcome)

    With an index.php file in directory —> themes/wordstrap/groups/index.php

    (no change whatsoever if in themes/wordstrap/buddypress/groups/index.php)

    see altered file at http://pastebin.com/VAfJAjbj

    and a jpg of the result at http://i.imgur.com/7fRK8at.jpg (where within the content everything has floated left!).

    Any advice most welcome

    Avatar of Hugo
    Hugo
    Moderator

    @hnla

    Please bear in mind primary purpose of support here isn’t providing solutions for third-party themes.
    You’ll need to track down why it isn’t working, and as mercime suggests, create a custom override template for BP screens.

    Avatar of @mercime
    @mercime
    Keymaster

    @mercime

    hnla, valuser and I are long-time acquaintances ;-)

    @valuser Could be the missing opening and closing divs. Not going to be as easy as BP template pack IMHO :-)

    We could try the alternative way for theme compatibility which is creating one file to take care of all the BuddyPress pages. So backup the buddypress/groups/index.php you made and delete the index.php along with the BP folders you created from your theme folder in server. Then create a file, buddypress.php and add http://pastebin.com/EsBMTpSG and upload this to the root of your theme folder in server i.e., wordstrap/buddypress.php

    Avatar of danbp
    danbp
    Moderator

    @danbp

    hi @valuser,

    the bp_is_blog_page function is missing to hide the calendar when on BP pages.

    The place with the weird output contains an overcomplicated method to show a title. IMHO there is no need to use so many conditionnals to show a post title…. So I replaced it by the h1 stuff used in Twenty Thirteen.

    You will probably need some adjustment into CSS too. So far i can see there is no other trouble with BP. Nice theme !

    remove/replace the following into /partials/part_article_header.php

        <?php
        // Article calendar
        if ( bp_is_blog_page() ) :  //  if it returns true, it's not a BP page.
    	
        if (!is_page() && !is_search()) : ?>
    	<div class="calendar event_date">
    		<span class="month"><?php echo strtoupper(get_the_date('M')); ?></span>
    		<span class="day"><?php echo get_the_date('d'); ?></span>
    		<span class="year"><?php echo get_the_date('Y'); ?></span>
    	</div>
        <?php endif; 
               endif; // ending bp_is_blog_page ?>
    
        <h1 class="entry-title">
            <?php if ( is_single() ) :  ?>
                <?php the_title(); ?>
            <?php else : ?>
                <a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a>
    			 <?php endif; ?>
        </h1>
    Avatar of valuser
    valuser
    Participant

    @valuser

    Hi, @mercime

    your suggestion worked like magic.

    @chouf1

    just right- now your suggestion also worked !!

    many thanks.

    Avatar of @mercime
    @mercime
    Keymaster

    @mercime

    @valuser great! Marking this as resolved.

Viewing 7 replies - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.