Skip to:
Content
Pages
Categories
Search
Top
Bottom

howto clone theme ‘nouveau’?


  • wh82
    Participant

    @wh82

    I’m making some modifications on my BP templates. To make sure everything is still fine after the next update, I cloned some templates by copying the file(s) in:

    /wp-content/plugins/buddypress/bp-templates/bp-nouveau/buddypress/

    to

    /wp-content/themes/mytheme/buddypress/

    The strange thing is… some mods I made in this new directory do show up on my website, for example the modifications in /activity/entry.php all work fine

    BUT the changes I make in /activity/activity-loop.php do not!
    I checked the grammar a dozen times, what am I doing wrong here? 🙂

Viewing 11 replies - 1 through 11 (of 11 total)

  • metalhead505
    Participant

    @metalhead505

    If you just copy the members folder over to /yourchildtheme/buddypress, that should work. yes/no?


    wh82
    Participant

    @wh82

    Now I copied the complete directory:

    /wp-content/plugins/buddypress/bp-templates/bp-nouveau/buddypress/

    to

    /wp-content/themes/mytheme/buddypress/

    All files and folders… but still, editing activity-loop.php (deleting all content to be sure..) does not affect my website at all.


    metalhead505
    Participant

    @metalhead505

    If you just copy the contents of /wp-content/plugins/bp-templates/bp-nouveau/buddypress/

    to

    /wp-content/themes/mytheme/buddypress

    then you can edit those files.

    Inside this folder:

    /wp-content/themes/mytheme/buddypress

    You should then have:

    activity
    assets
    blogs
    common
    groups
    members

    — In other words, these are the only subfolders that you will be able to modify this way.

    Some other things to keep in mind, and sorry if you already know, but temporarily deactivate caching and/or minification plugins while editing, and depending on your browser settings, delete cache


    wh82
    Participant

    @wh82

    That’s exactly what I did. But editing /activity/activity-loop.php does not change a thing on the website.

    Strange, because editing entry.php in the same folder does….


    Venutius
    Moderator

    @venutius

    One thing to try, I seem to remember that it might work if you put it in child-theme/buddypress/buddypress/... worth a try but I’ve not tried it myself.


    wh82
    Participant

    @wh82

    No 🙁

    I also deleted all the code in the original activity-loop.php (in plugins) to see if anything happend… site works like a charm!
    I don’t get this.


    Venutius
    Moderator

    @venutius

    One thing you could try to use BP Template Overloader to create a theme independent overload for Nouveau, this changes the loading of templates to a separate directory and should work.


    wh82
    Participant

    @wh82

    First of all thanks for al your help.

    I installed the plugin.
    Comparing the ‘original’ and ‘overload’ version of activity-loop.php I see this:

    That’s fine, because I deleted all the content to test.
    But my site still works! No cache pluging, Cloudflare or what so ever active…


    Venutius
    Moderator

    @venutius

    Yes, it seems that BP is not picking up the overloaded file, just ignoring it and using the master file. That’s why I suggested setting up a TIO for that file to see if that works since the plugin sets up a new search hierarchy for templates.


    wh82
    Participant

    @wh82

    No, a TIO does not change a thing..


    Venutius
    Moderator

    @venutius

    I’ve just copied activity-loop into the theme/buddypress/activity directory and the overload works for me.

Viewing 11 replies - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.
Skip to toolbar