Skip to:
Content
Pages
Categories
Search
Top
Bottom

creating a new child theme : help


  • grosbouff
    Participant

    @grosbouff

    HI, i’m developping a new child theme (the parent theme is bp-sn-parent).

    My theme is recognized as a child theme;

    I added the line

    Template: bp-sn-parent

    in my style.css; and in the admin (Manage Themes) it says

    The template files are located in /themes/mediapole. The stylesheet files are located in /themes/mediapole. Mediapole uses templates from BuddyPress Social Network Parent Theme. Changes made to the templates will affect both themes.

    .

    So this seems to be okay.

    BUT : when I load a BP page, the Profile Page for example; it says “The page you were looking for was not found.”.

    If I well understood; a child theme calls the parent theme template if the child theme does not have that template.

    So here it should call the Profile from bp-default…

    But it does not.

    What do I miss ?

    Thanks !

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

  • grosbouff
    Participant

    @grosbouff

    I’m really stuck on this one.. please help !

    Why not start by copying the child theme that comes with BuddyPress and go from there?


    wordpressfan
    Participant

    @wordpressfan

    The problem with using the default child theme as a base for a new theme is that it is much more work. Rather than fit the thousands of WordPress themes into the default child theme, it seems easier to fit the needed BuddyPress features into the style of the many, many WordPress themes being produced for free or commercially.

    The default child is nothing more than a stylesheet… essentially. And a bunch of icons. It may be just as much work either way. I’m not sure. I haven’t tried to adapt any existing WP themes. I just made a new theme based on the child. I didn’t change a whole lot though.


    grosbouff
    Participant

    @grosbouff

    Well, I agree with WordPressfan…

    But i’m still stuck :)

    Dumb question… but have you updated your permalinks?


    grosbouff
    Participant

    @grosbouff

    Yes I have…


    grosbouff
    Participant

    @grosbouff

    PS : and it works with the default theme too.

    But not with mine…

    Another example : I have a custom index.php template in directories/group.

    I changed almost nothing, but this :

    <?php locate_template( array( 'directories/groups/groups-loop.php' ), true ) ?>

    into

    <?php locate_template( array( '../bp-sn-parent/directories/groups/groups-loop.php' ), true ) ?>

    as I don’t have a custom group-loop.php.

    With this, the groups are shown, but when I click on a single group I have : “The page you were looking for was not found.”

    Don’t know if it can help you understanding the problem.

    Ahh. Perhaps it’s a path issue? Just for the heck of it… try a full path to that loop file… i.e. http://www.mysite.com/wp-content/…&#8230;


    grosbouff
    Participant

    @grosbouff

    David, the loop of group works; this template path is ok.

    It’s for showing the single group (home.php) that it does not work…

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘creating a new child theme : help’ is closed to new replies.
Skip to toolbar