upgrading to 1.5 prior to 1.6 (with a hail mary :-)
-
Hi guys,
I just upgraded WP to latest version, and then after a long search found the CP 1.5 files and overwrote my 1.2.8 installation. Now to get it all working with my custom child theme 🙂 Would love some help.I’m trying to implement the article at http://codex.buddypress.org/developer/releases/developer-and-designer-information/, and
1) it says:
>>>>>>You’ll also need to modify the following file in your WP theme:
/wp-content/themes/YOUR-THEME/members/single/home.php
Open up /members/single/home.php in your editor and add:<<<<<<<<<<>>>>>>In your functions.php declare the function like this:
?
1
2
3
4
5
6
7
8
9
10
11
12
function bp_dtheme_enqueue_styles() {
// Bump this when changes are made to bust cache
$version = ‘20110804’;// Default CSS
wp_enqueue_style( ‘bp-default-main’, get_template_directory_uri() . ‘/_inc/css/default.css’, array(), $version );// Right to left CSS
if ( is_rtl() )
wp_enqueue_style( ‘bp-default-main-rtl’, get_template_directory_uri() . ‘/_inc/css/default-rtl.css’, array( ‘bp-default-main’ ), $version );
}
add_action( ‘wp_enqueue_scripts’, ‘bp_dtheme_enqueue_styles’ );
<<<<<<But then I get a "Call to undefined function add_action() " error
3) How do I ensure it will enqueue the .css file in my child theme directory?
4) Do I need to find the developer notes for upgrading to buddy press 1.4 and 1.5 as well and make other changes to my child theme? Where would I find these? The above link just talks about BP 1.5 and 1.5.2
5) I get undefined function error from my child them header calling
a) "bp_dtheme_page_on_front()" function.:
b) Call to undefined function bp_is_page()
<li
It seems these functions aren’t deprecated, so how can i ensure they get loaded properly?
Thanks in advance 🙂
David
- The topic ‘upgrading to 1.5 prior to 1.6 (with a hail mary :-)’ is closed to new replies.