Skip to:
Content
Pages
Categories
Search
Top
Bottom

Default theme is still showing


  • chlab
    Participant

    @chlab

    Hi folks

    I have the task of updating a heavily customized version of BuddyPress 1.5 to the most recent version and isolating the changes to the plugin’s source and moving them to the theme directory :).

    So I updated BuddyPress to the most recent version and am now trying to make child theme files for certain pages where changes are needed. I read that the BP default theme has been retired and should not show up under Appearance > Themes unless it’s still in use. However, I can’t get it to dissapear, which tells me that somehow, it may still be in use by something. I activated a WordPress default theme and disabled all other plugins but the default theme is still showing up.

    Another problem I’m having is that I can’t get the template hiearchy to be used. I have created a “buddypress” dir and a “groups” dir within it. There I created two files “index-create.php” and “index-directory.php”, both just have a die(‘asfd’); statment in it for testing. But neither on the group listing page, nor on the group creation page are these templates being used. Is there something that I might be missing?

    Thanks for your help.

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

  • djsteveb
    Participant

    @djsteveb

    not sure why this is of concern, and I am not a bp expert.. however I would make a full backup of all files (via ftp or filemananager with a zip or something) – then export a copy of your database (through phpmyadmin for example (be sure to check off the box for “add drop table (or whatever it is called) –

    then go in and delete the old theme that is still showing up in appearance themes…

    and if everything is still working.. then your problem is solved (?)


    chlab
    Participant

    @chlab

    Thanks for your answer.
    I don’t care whether or not the template shows up there ๐Ÿ™‚ but I am interpreting this as a sign that it is still in use somehow, which should not be the case.


    chlab
    Participant

    @chlab

    Update:

    I copied my theme/buddypress directory into the twentyfourteen directory and now my files are being included. So the problem is with my theme. What could cause the template hierarchy to be ignored in a custom theme? I’ll try getting rid of as much as possible to see if I can get it work.

    I read that the BP default theme has been retired and should not show up under Appearance > Themes unless itโ€™s still in use.

    That’s not quite true. If you can remember where you read it, please let me know, and I’ll see about correcting the information.

    If you had a BuddyPress site prior to version 2.0, then we will always make BP-Default available in the themes list. If you were to install BuddyPress today on a new site that did not have BuddyPress installed before, then it would not show up. I hope that makes sense.

    (I’m not sure if we started this behaviour in version 1.9 or 2.0, but it was around then).

    From reading that documentation, it looks like the files are named correctly. I’m not sure.
    Maybe @hnla or @henrywright


    chlab
    Participant

    @chlab

    I read it here and here, but maybe it will always show up as you said because we updated from an earlier version.

    The files are named correctly, as with the twentyfourteen theme the files are being included.

    My next step will be to build a theme from scratch and see if I can get it to include the files.

    @chlab @djpaul

    The template hiearchy advanced template names are correct and will overload any theme compat files as long as they are located in correct directories, and by the sound of things you have established this on a stock WP theme ( always remember that with template names such as index-create.php we are saying take full control of the template rendering bypassing BP’s content injection so the template needs to be a full WP template i.e one complete with header call and footer call and all necesary content inbetween)

    Things that can force deactivate theme compatibility are:

    
     * Theme compat is disabled when a theme meets one of the following criteria:
     * 1) It declares BP support with add_theme_support( 'buddypress' )
     * 2) It is bp-default, or a child theme of bp-default
     * 3) A legacy template is found at members/members-loop.php. This is a
     *    fallback check for themes that were derived from bp-default, and have
     *    not been updated for BP 1.7+; we make the assumption that any theme in
     *    this category will have the members-loop.php template, and so use its
     *    presence as an indicator that theme compatibility is not required
    

    Pay special attention to the possibility of members-loop.php existing from previous implementation of this custom theme in the themes root i.e members/members-loop.php

    And check through any functions files for inclusion of :
    add_theme_support( 'buddypress' )

    Both or either of these will deactivate theme compatibility and likely result in navigating to /groups/ simply displaying a plain stock WP page.php view.


    chlab
    Participant

    @chlab

    Thanks Hugo, that helps. It was the style.css. It hat a Template: bp-default in it. I didn’t notice it at first because our theme is named similarly and my mind read it as the title of our theme. If I remove it, my templates are included.

    Now I have to find out how to upgrade the theme so it no longer relies on the bp-default theme.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Default theme is still showing’ is closed to new replies.
Skip to toolbar