Stray Content after installing Buddypress – Swagger Theme
@teorourke you need to go through Step 3 of the BP Compatibility process i.e., change/adjust the HTML structure of the BP template files transferred to your theme’s folder to the HTML structure of your WP Swagger theme.
If you need assistance, open up your swagger theme’s header.php, copy all, paste at pastebin.com, click submit and post the generated URI here. Do the same for your theme’s index.php, page.php, sidebar.php and footer.php files.
I’ve looked through all I can, any help would be appreciated in finding the problem. I feel if I tinker more with it, everything will break lol. Thanks for taking the time!
@teorourke Code to the index.php you posted above is a BP template file from /swagger/members/index.php Please post the code of index.php from /swagger/index.php which I use to double-check structures. It looks like you would only need to add two xxx-buddypress.php files instead of revising 16 files but I want to make sure first.
It’s been a few days now, I’d really appreciate help on this if anyone can spare a moment? Thanks!
@teorourke I was waiting for your theme’s index.php file to double-check the HTML structure so that we’ll get this hopefully in one go. As I mentioned above, that code you posted for index.php is obviously a BuddyPress template file see “BuddyPress – Members Directory”. written near the top of the file….
In any case, I will be posting the instructions in a few minutes. If this doesn’t work for you, do ask the theme author to look at this post and help you with the final touches.
For some reason I just simply cannot find what’s needed. Maybe this is it?
@teorourke Based on initial scan, you only need to create two new files, header-buddypress.php and sidebar-buddypress.php to make your theme compatible with BuddyPress.
If you’ve revised any of the BP template files transferred to your swagger theme folder in server during the BP Compatibility process, please delete the 6 BP folders transferred to your swagger theme folder in server – activity, blogs, forums, members, groups, register – then re-run Appearance > BP Compatibility again to make sure that you have clean template files.
Thanks for the work!
Two things I found out where the index.php is. Here’s the pastebin for the index.php.
Above you detailed how to make the header-buddypress.php. That’s done, and looks good so far. However I don’t know how to go about doing the sidebar. I did more research and found out there’s no sidebar.php included on purpose. Below the maker explains why in the documentation that came with the theme.
“Swagger is a 960px fixed-width theme with indented and intuitively spaced HTML. You will find in-line commenting allthroughout the HTML so that you can always figure out what section of the layout you are in. The backbone of every page is as follows:
`…page menu, social links, search box……logo, main menu, header ad……category/review menu……latest slider……or…(for full-width pages)
…all page content, including featured slider, post loop, and article slider…(only applies to non full-width pages)
…all sidebar widget content……footer widgets, copyright bar…
In order to create this HTML structure, each page includes the header.php and footer.php files. You will notice there is no “sidebar.php” file in Swagger. That is because there are 16 unique widget areas, and rather than creating 16 separate files – one for each widget area – the sidebars are included directly in each of the pages that they are assigned to.”
So! How do we go about doing this, now that we have that information?
@teorourke I know you do not have a sidebar.php in your theme. Please read the instruction above:
B. Create a BLANK sidebar-buddypress.php
Open up sidebar-buddypress.php and paste this: …..
Content will be added for the BP template files to adjust the structure and not for your regular WP files.
Hah! My fault, I stopped at the end of the first post and didn’t follow through with the second. I’ll try all that now and let you know how it works out.
The code provided above worked, although a little change was required in sidebar coding…
> Widgets, and drag & drop a widget into the corresponding widget panel.', 'swagger' ); ?>
- The topic ‘Stray Content after installing Buddypress – Swagger Theme’ is closed to new replies.