Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to recognize alternate page templates?

  • @shirleyl

    Participant

    I’m developing a new site using WP 3.5.1, BP 1.7.2 and the free version of the Catch Box theme: http://sndhome.org

    The theme comes with several page template alternatives. My default is to have the content on the left with sidebar on the right, but Iโ€™m trying to use a Full Width Disable Sidebar Template option on some pages. It seems to work fine on some pages, for example:
    http://sndhome.org/calendar/ but it doesnโ€™t work on my BuddyPress or bbPress pages, for example: http://sndhome.org/groups/ and http://sndhome.org/forums/

    It appears that whatever BuddyPress and bbPress code is controlling the page layout doesn’t recognize the non-default page template option I’ve set for specific pages. Any advice on how to tweak the code so that it would recognize this? I’m new to BuddyPress and bbPress, so any guidance would be greatly appreciated.

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

    Participant

    @shirleyl open up your theme’s full-width page template and save as buddypress.php and upload this file to your theme folder in server wp-content/themes/yourthemename/

    Do the same for bbPress, create a new file bbpress.php from full-width theme template and upload same to theme folder in server.

    Know that the full-width with apply to all BP and bbPress templates. If you want different layouts for each BP component, read this https://codex.buddypress.org/developer/theme-development/a-quick-look-at-1-7-theme-compatibility/

    @shirleyl

    Participant

    Thanks for the help @mercime. I’m making progress. I did as you instructed and placed the buddypress.php and bbpress.php files in the root of my theme directory. Previously, I had the customized buddypress.php file in my theme’s buddypress directory. Now, the sidebar doesn’t display on the groups or forums pages, but the main content is still not expanding to full width, the way it does on the Calendar page http://sndhome.org/calendar/ (which is associated with the All-in-One Calendar plugin).

    I can tell that this theme accomplishes the full-width display by swapping CSS settings. But even after spending some time digging through the theme’s files, I haven’t been able to locate the code that controls this behavior. I can just see that it works for pages that aren’t associated with BuddyPress or bbPress. I would just change the theme’s default template, except the template author doesn’t provide a default option that enables the full-width display. ๐Ÿ™

    I have posed the question to the template developer as well. Still awaiting a response there. I really appreciate your help. I’m learning a lot today! ๐Ÿ™‚

    @shirleyl

    Participant

    OMG! Just had a major break thru! Forget figuring out how to invoke the theme’s fullwidth display CSS. I figured out how to have a customized sidebar on my BP and bbP pages in my child theme, which is way better. Check it out at http://sndhome.org/groups/ and http://sndhome.org/forums/. What a great way to end the week! I’m going to quit working on this now, before I break something.

    @mercime

    Participant

    @shirleyl ๐Ÿ™‚ Marking this as resolved. Have a great weekend.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to recognize alternate page templates?’ is closed to new replies.
Skip to toolbar