Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] Nevada Theme and Step Three: Tweaking your layout. Help?

  • @elmindo

    Participant

    Hi there. I’m trying to include BuddyPress into my WordPress site, running the Nevada Theme from UnitedThemes. http://www.unitedthemes.com/portfolio/nevada-responsive-multi-purpose-theme/

    I’ve made it to step three, Tweaking your layout. After installing BuddyPress Template Pack.

    My page is: http://www.adrianminde.com/ and the BudduPress instalatioin is found under the forum-menu option.

    But changing the code is a bit too confusing to me. I have downloaded the BuddyPress folders from my server, and the page.php from the theme folder. But I’m a bit lost at which lines of code I need to swap out.

    I see, the there are other people on this forum that have gotten specific help with their themes and code, and I was hoping that someone could help me as well. It would be so appreciated.

    [EDIT – please post long blocks of code – like source code – in pastebin.com. Posted your page.php source at http://pastebin.com/JNGB4Qi9 ~~~ Mercime]

Viewing 8 replies - 1 through 8 (of 8 total)
  • @mercime

    Participant

    @elmindo Working with the framework will be more complicated than usual, but we’ll give it a try.
    Post the source codes of the following separately in pastebin.com
    – loop-page.php
    – functions/theme-layout-functions.php
    – sidebar-page.php
    – header.php
    – index.php
    – footer.php

    @elmindo

    Participant

    @mercime thanks!

    Here’s the source codes of the following separately in pastebin.com

    – loop-page.php: http://pastebin.com/rC4W3k0Z
    – functions.php: http://pastebin.com/wSt1cg15
    – sidebar-page.php: http://pastebin.com/HrzsVHbF
    – header.php: http://pastebin.com/MgsbGE4f
    – index.php: http://pastebin.com/9Fu2EhFM
    – footer.php: http://pastebin.com/U0u8WJu8

    @elmindo

    Participant

    Got this from the UnitedThemes Suport guys, if it will help:

    Quote: UnitedThemes

    … it seems like that you need to move the mentioned files above into the theme directory. And when moving you need to apply the settings for the basic setup.

    Therefore we made use of functions instead of hardcoded HTML inside our files. So when having a look at the page.php we are using a functions to open the content part and another to close:

    Code:
    lambda_before_content($columns=”);

    will create a div:

    Code:
    <div id="content-wrap" class="fluid clearfix" data-content="content"><!– /#start content-wrap –>
    <div class="container"><div id="content" class="’.$columns.’ columns">

    and

    Code:
    lambda_after_content();

    will close it. So use this skeleton here to create the single template files:

    Code:
    <?php

    //includes the header.php
    get_header();

    //includes the template-part-slider.php
    get_template_part( ‘template-part’, ‘slider’ );

    //includes the template-part-teaser.php
    get_template_part( ‘template-part’, ‘teaser’ );

    //set column layout depending if user wants to display a sidebar
    lambda_before_content($columns=”);

    //the content loop
    get_template_part( ‘loop’, ‘page’ );

    //content closer – this function can be found in functions/theme-layout-functions.php line 56-61
    lambda_after_content();

    //include the sidebar-page.php
    if(empty($columns))
    get_sidebar();

    //includes the footer.php
    get_footer();
    ?>

    But I’m still a bit lost.

    @mercime

    Participant

    @elmindo we’re going to have to hard code some of the template structures. Assuming that you’ve already set up your theme, let me know what your choices are in terns of
    1. theme version you used: Full Width OR Boxed? Which one?
    2. sidebar for ALL BP templates: No sidebar (full width) OR Left Sidebar OR Right Sidebar OR Both Sidebars? Which one?

    @elmindo

    Participant

    1. I’m using version 1.3, Full Width.
    2. alternating between no sidebar and right sidebar on my page, bu would do with right sidebar for BP.

    @mercime

    Participant

    @elmindo Based on the HTML structure of your theme, you need to change 16 template files within the 6 BP folders transferred to your nevada theme folder in server during the compatibility process.

    If you’ve previously changed any of the BP template files in your nevada theme folder in server, replace all of them for a clean slate by deleting the 6 BP folders – /activity, /blogs, /forums, /groups, /members, and /registration – then re-run Appearance > BP Compatibility.

    Download the 6 clean BP folders to your computer hard drive.

    A. At the top of each of those 16 template files I linked to above, replace
    `

    `

    with the following:
    `<?php
    global $lambda_meta_data;
    $meta_sidebar = $lambda_meta_data->get_the_value(‘sidebar’);
    $meta_sidebar = (!empty( $meta_sidebar )) ? $meta_sidebar : get_option_tree( ‘select_sidebar’ );
    get_header();
    get_template_part( ‘template-part’, ‘slider’ );
    get_template_part( ‘template-part’, ‘teaser’ );
    if($meta_sidebar != UT_THEME_INITIAL.’sidebar_none’) {
    lambda_before_content($columns=”);
    } elseif($meta_sidebar == UT_THEME_INITIAL.’sidebar_none’) {
    lambda_before_content($columns=’sixteen’);
    }
    ?>
    <section id="post-” >

    `

    Then, in each of 16 files, you’d like to change the BP Templates’ page title’s header tag from `

    ` or `

    ..

    ` to `

    // Respective Page Titles //

    ` where applicable, then move this to above `

    ` Just watch out when you do this in the /activity/index.php page.

    Save files.

    @mercime

    Participant

    B. At the bottom of the same 16 files, replace:
    `

    `

    with the following (except for registration/register.php):
    `
    <?php
    lambda_after_content();
    if(empty($columns))
    get_sidebar();
    get_footer();
    ?>`

    with the following for registration/register.php:
    `

    jQuery(document).ready( function() {
    if ( jQuery(‘div#blog-details’).length && !jQuery(‘div#blog-details’).hasClass(‘show’) )
    jQuery(‘div#blog-details’).toggle();
    jQuery( ‘input#signup_with_blog’ ).click( function() {
    jQuery(‘div#blog-details’).fadeOut().toggle();
    });
    });

    <?php
    lambda_after_content();
    if(empty($columns))
    get_sidebar();
    get_footer();
    ?>`

    Save files.

    C. Upload the 6 BP folders containing the 16 files you’ve just revised to your server wp-content/themes/nevada/

    D. Copy the style modifications made in BP Twenty Ten at https://codex.buddypress.org/theme-development/theme-dev-bp-template-pack-walkthrough-twenty-ten-bp-1-5/3/ and paste to your theme’s stylesheet. Adjust to taste.

    @elmindo

    Participant

    Thank you so much @mercime ! All though I’m an atheist, I’m tempted to call you a God :-P

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Resolved] Nevada Theme and Step Three: Tweaking your layout. Help?’ is closed to new replies.
Skip to toolbar