Skip to:
Content
Pages
Categories
Search
Top
Bottom

Child theme/ php template files


  • Jan
    Participant

    @locke85

    Hi there,

    I understand from this threat that the layout of search results or topic-tag pages can be customized based on the template files stored in the bbpress/templates/default/bbpress folder.

    In order to retain the customization during updates of the bbpress plugin, I have created the same folder structure inside the directory of my child theme (see screenshot).

    The only change I’d like to make is for the topic-tag page to look exactly like the search-result page (see screenshot) –> list of forum threats in full length rather than list of titles only.

    In order to realize that I need to…

    1) copy a ?-search.php file from the plugin directory into the respective subfolder of the child theme and
    2) rename it into a ?-topic-tag.php file.

    Is this correct? If so, which ?-search and ?-topic-tag file do I need to consider?

    Many thanks for your support in advance.

    Best regards,
    Jan

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

  • Robin W
    Moderator

    @robin-w

    ok, so

    I understand from this threat that the layout of search results or topic-tag pages can be customized based on the template files stored in the bbpress/templates/default/bbpress folder.

    In order to retain the customization during updates of the bbpress plugin, I have created the same folder structure inside the directory of my child theme (see screenshot).

    yes that is correct and should work, BUT you would do better to only copy those templates you are changing/altering – bbpress will then use those you have changed from your child theme directory and use the unchanged from the plugin directory..

    so what are users clicking to get the topic tags page ?


    Jan
    Participant

    @locke85

    Hi Robin,

    thanks for getting back timely and for re-confirming my understanding about copying template files selectively. In fact I have already done so. When I copy the content-search.php into the related subfolder of my child-theme and rename it into “form-topic-tag” the trick is not working ;-/

    What I need to know is which page is linked to which template, so that I know which template I need to copy and modify.

    Regarding your question: Users a clicking the tag name to get to the topic tag page.

    Again my questions:

    1) what is the name of the template file behind the topic search results?
    2) how do I need to rename this template file in order to get the page structure of the keyword search result page for the archive-tage page also?

    Any advise is much appreciated.

    Best regards,
    Jan


    Robin W
    Moderator

    @robin-w

    FORUMS

    \templates\default\bbpress\content-archive-forum.php
    lists forums

    calls
    loop forums or feedback-no-forums

    \templates\default\bbpress\loop-forums.php
    does forum list headers

    calls
    loop-single-forum

    \templates\default\bbpress\loop-single-forum.php
    lists each forum, last post and freshness

    _____________________________________
    SINGLE FORUM

    \templates\default\bbpress\content-single-forum.php
    lists sub forums if needed using loop-forums
    calls
    loop-topics
    calls
    form topic

    \templates\default\bbpress\loop-topics.php
    does topic list headers

    calls loop-single-topic

    \templates\default\bbpress\loop-single-topic.php
    lists each topic in the forum, last post and freshness

    lists topic content

    ___________________________________________
    SINGLE TOPIC

    \templates\default\bbpress\content-single-topic.php
    if show lead topic set, calls content-single-topic-lead

    calls
    loop-replies
    form-reply

    \templates\default\bbpress\loop-replies.php
    does reply list headers

    calls loop-single-reply

    \templates\default\bbpress\loop-single-reply.php

    lists reply content


    Jan
    Participant

    @locke85

    Hi Robin,

    thanks for sharing this piece of additional documentation.

    Unfortunately I don’t quite see how this answers the two questions of my previous reply. None of the entries talks about “search” or “topic-tag” related template files.

    May I kindly ask you to elaborate please.

    Thanks,
    Jan


    Robin W
    Moderator

    @robin-w

    sorry, I just help out here I’m not a bbpress author and this is at the limit of my knowledge.

    As far as I can see this page just uses the standard forum display templates


    Jan
    Participant

    @locke85

    Fair enough Robin.

    Any thoughts on how to connect to to bbpress authors directly on this?


    Robin W
    Moderator

    @robin-w

    I’ve been kicking this round from time to time in an effort to get to a solution.

    This is close to what you want I hope

    download this file, unzip and FTP to your child theme’s bbpress folder

    Taxonomy like search

    sorry, you’ll need to kick this round yourself if you want to alter layout, but it should be close


    eterasai
    Participant

    @eterasai

    I wanted to asked for a similar query. But it seems i have to look somewhere else. BTW, Thanks for all your efforts in providing the solution. Regards, Etarasai


    Robin W
    Moderator

    @robin-w

    that link in my last post will get you a list as a solution

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