Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] Theme Compatibility Twenty Eleven Child Theme


  • pawriter
    Participant

    @pawriter

    I installed WP with Twenty Eleven 1.2 theme then added Event Manager plugin and a voting plugin. I also made my home page static and added a renamed blog page. At that point the only problem I discovered was that profiles no longer had avatars. Now that I have installed BuddyPress I have several new apparently blank pages including profiles for subcribers and a warning and fatal error for Event Manager.
    How can I tell if my theme is BP Compatible and if the probelems I now have are theme related or plugin incompatibilities?

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

  • @mercime
    Keymaster

    @mercime

    To make your Twenty Eleven theme compatible with BuddyPress, you need to install the BP Template Pack plugin and go through the Appearance > BP Compatibility process
    https://codex.buddypress.org/theme-development/wordpress-to-buddypress-theme/
    https://codex.buddypress.org/theme-development/theme-dev-bp-template-pack-walkthrough-twenty-eleven-bp-1-5/


    pawriter
    Participant

    @pawriter

    Thank you I shall look at these references and let you know the outcome.
    You are always of great assistance!


    pawriter
    Participant

    @pawriter

    I have followed these two steps –
    1. Create a new theme folder for your Twenty Eleven child theme. For this example, the child theme is called BP Twenty Eleven so we’ll name our theme folder bp-twentyeleven.

    2. Create a style.css file and add it in the bp-twentyeleven folder with content below:
    (copying the suggested content for style.css)
    3. Upload the bp-twentyeleven folder with the style.css file within to your server at /wp-content/themes/

    NB My installation is on stand alone PC not connected to the internet.

    When I attempt the start of the Compatibility Process and click on “update your existing wordpress theme I get the following error:

    An unexpected HTTP error occurred during the API request – Try Again

    I cant progress beyond this point.


    @mercime
    Keymaster

    @mercime

    == NB My installation is on stand alone PC not connected to the internet. ==
    1. Keep BP Template Pack plugin activated.
    2. Open up bp-default theme and copy the folders listed below from bp-default theme into bp-twentyeleven folder
    – activity, blogs, forums, groups, members, registration


    pawriter
    Participant

    @pawriter

    Thanks – sorry I had to go to work for a couple of hours.

    I have done what you suggested – where do I go next? Do I try to continue with Step 3 of the Compatibility Process creating header-buddypress.php and sidebar-buddypress.php?


    pawriter
    Participant

    @pawriter

    I have added the header-buddypress.php and sidebar-buddypress.php files as suggested. When I checked the Appearance it gave me a broken theme message which I fixed by correctly renaming the ‘twentyeleven’ theme directory in style.css so I now have Twenty Eleven still installed but I guess I may need to Activate BP Twenty Eleven child theme now?


    @mercime
    Keymaster

    @mercime

    Yes, you need to activate BP Twenty Eleven child theme


    pawriter
    Participant

    @pawriter

    I have activated the BP Twenty Eleven child theme so I now see content in BP pages with a parse error: syntax error, unexpected ‘<' in C:xampphtdocswpresswp-contentthemesBP Twenty Elevensidebar-buddypress.php on line 9 – which is where I put the additional code suggested ()
    It is inside the <?php immediately below the descriptive comment and above the line
    $options = twentyeleven_get_theme_options ();

    Have I put it in the wrong place?

    This parse error appears on all BP pages but not the original theme pages.

    My dashboard is still telling me I have activated the BuddyPress Template Pack, but not completed the setup process.

    Sorry for my ignorance
    .


    @mercime
    Keymaster

    @mercime

    Instruction was to paste `` at the TOP of the file so sidebar-buddypress.php should be like this http://pastebin.com/aLkf4uaS


    pawriter
    Participant

    @pawriter

    Thank you I will proceed with the re-alignment step then Finish.

    Do I have to have the sidebar on all the BP pages – I do want it on the blog page but it is superfluous elsewhere?


    pawriter
    Participant

    @pawriter

    I have made the suggested changes to style.css in the BP Twenty eleven child theme but the misalignment of sidebar elements remains on the BP pages – it has always been fine on the theme blog page.


    @mercime
    Keymaster

    @mercime

    Default layout of BP components is a two column layout. That’s why I’ve used the 2nd method to make 2011 compatible with BP. If you want a one column layout for all BP templates OR a mix of one column layout and two column layout, you’d have to use the 1st method for BP compatibility, i.e. changing 14 template files transferred to your BP 2011 child theme folder.

    == misalignment of sidebar elements remains on the BP pages ==
    BuddyPress and BP Template Pack plugin are activated, right? Do you have a screenshot of that misalignment? ALL the BP pages or a few? If so, which pages?.


    pawriter
    Participant

    @pawriter

    Thanks again –
    Yes both BuddyPress and Buddy Press Template Pack plugins are activated.
    Here is a screenshot of the Members Directory page –
    https://picasaweb.google.com/lh/photo/LLpt3eGzxlUSY1kPNJq45LGj7ar25XRPe7l625Mbz28?feat=directlink
    (in case you cant see it: it is very similar to your shot of misalignment after step 3 except the BP element component widths are ok)
    ALL BP pages are affected in the same way.

    I also have an “Activate’ page that asks for an activation key, although it doesnt appear on the navigation menu, and which has the same misalignment of the sidebar items..


    @mercime
    Keymaster

    @mercime

    Not quite the same. In this case, it seems like you’re missing the opening div tag that was supposed to be added in header-buddypress.php hence closing the container prematurely. This should be in header-buddypress.php http://pastebin.com/kr1jK5PW


    pawriter
    Participant

    @pawriter

    Thank you for your efforts. You were correct about the cause of the problem but the error was mine typographically. I left a ‘d’ out of the header-buddypress.php file name so presumably the original header.php file content from the twentyeleven theme was still being used – causing the same result as you described. I must connect a decent monitor to my netbook for this work I think, that and get better sleep.
    From my perspective this has determined me to spend the time to gain a better understanding.

    Once again thanks for your guidance.


    @mercime
    Keymaster

    @mercime

    You’re welcome. Have a good week.

Viewing 16 replies - 1 through 16 (of 16 total)
  • The topic ‘[Resolved] Theme Compatibility Twenty Eleven Child Theme’ is closed to new replies.
Skip to toolbar