Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: adding content to the 1.2 default theme homepage


@mercime
Keymaster

@mercime

I’ve had a home.php and a blog page working in custom child themes of bp-default since 1.2 trunk and in bp-sn-parent before that, I did it this way:

1. create home.php as usual

2. create header-home.php to protect home.php

– made it when in 1.2trunk a conditional statement inserted in header.php limited home page to blog page or activities page and kicked out my home.php :-)

– in home.php call header-home.php with

<?php get_header('home'); ?>

3. create “blog page” with pagination

– 2nd option in this post http://www.nathanrice.net/blog/creating-a-blog-page-with-paging/

– Make sure you delete spaces between <?php after copying codes from that post

Except for the hiccup in #2 above, home.php, a WordPress template file has been respected in BuddyPress custom child themes and it overrode any home.php file in parent theme.

Cheers.

Skip to toolbar