Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Include common elements from bphome in bpmember theme


Burt Adsit
Participant

@burtadsit

Well, you could always encapsulate the navigation.php code into a function and just call that function from both places.

funciton my_nav_stuff(){

?>

.. all the stuff from navigation.php…

<?php

}

Stick that in bp-custom.php then in both themes <?php my_nav_stuff() ?>

The template path gets hijacked when a user goes into the member theme. It gets set to /bp-themes. When they go out of it it’s back to normal again /themes. That wouldn’t work for pointing to a file.

Skip to toolbar