Need to customize my buddypress theme Template Stack
-
Hi
I request your help today for something quite simple (i expect).
But i can’t find a working solution with the buddypress function ‘bp_register_template_stack’I need to change the last part of all my template stack url to target another folder in my theme « sage »
this is because i’m using sage.io starter theme. The theme use the Laravel Blade templating systeminitial stack was :
/app/public/app/themes/sage/resources/buddypressbut i need to use :
/app/public/app/themes/sage/resources/views/buddypresshere is my try (in my functions.php) :
/** * Buddypress template stack adaptation for Blade Sage.io templating * @link * example @link http://www.generalthreat.com/2013/08/grappling-with-bp-theme-compatibility/ * * maybe try: bp_locate_template to test the hook * initial one was : * /app/public/app/themes/sage/resources/buddypress */ function md_bp_blade_register_template_location() { // return STYLESHEETPATH . '/views/buddypress/'; return TEMPLATEPATH . '/views/buddypress'; // return '/app/public/app/themes/sage/resources/views/buddypress'; } if( function_exists( 'bp_register_template_stack' ) ) { bp_register_template_stack( 'md_bp_blade_register_template_location', 1 ); }
any idea how to make this function work?
- You must be logged in to reply to this topic.