Skip to:
Content
Pages
Categories
Search
Top
Bottom

Trouble with some child theme templates

Viewing 5 replies - 1 through 5 (of 5 total)
  • @chouf1

    Participant

    @maijavilkina,

    have you assigned a page for “members” in the BP settings ?

    For the extra “ideas” page, you must create a page called “ideas” and assign it an existing BP template – see the select box on the right admin side when on the page editor.

    @maijavilkina

    Participant

    @chouf1 Yes I have assigned the pages properly for both Members and Ideas (via function for ideas).
    I may have not explained the problem properly because I don’t understand it myself.
    The ‘breaking’ occurs if I copy certain files from bp-default to child theme directory. For example the members page gets broken if I copy index.php from bp-default/members/ to childtheme/members/ . If I delete it, the buddypress.css and template load properly again.

    @maijavilkina

    Participant

    It’s like after certain components are copied over to child theme the child theme starts using a different functions.php all of a sudden or something, and I can’t understand the reason of that behaviour.
    I could always hack it by enqueueing buddypress.css from functions.php in my theme and manually adjusting everything, but I want to understand why this happens instead of just work around it.
    https://codex.buddypress.org/developer/theme-development/a-quick-look-at-1-7-theme-compatibility/ from this I understand that buddypress functions.php should be loaded at all times regardless if a child theme is present or not.

    @maijavilkina

    Participant

    Nevermind, it appears that I have been putting the child theme files in the wrong folders and eventually it messed up the compatibility mode.
    Should have been childtheme/buddypress/members/ instead of /childtheme/members
    Hoping that it will all work out better now.

    @hnla

    Participant

    exactly if you place members in the top root of your theme BP 1.7 will look for that and assume you are wanting to disable theme compatibility, it’s a means of ensuring backwards compatibility with themes already customised or template packed. BP theme compatibility only allows you to overload files by placing them in my-theme/buddypress/members/ (or community), soon, in hopefully 1.8, there will be further means of managing and using custom template parts under theme compatibility which should mean we can move forward from old methods and use theme compatibility exclusively.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Trouble with some child theme templates’ is closed to new replies.
Skip to toolbar