Skip to:
Content
Pages
Categories
Search
Top
Bottom

add template_part seven

  • @yudftvsbuyh

    Participant

    I’m completely new to wp and bbPress and also a php novice and am currently doing an assignment in both. I have created a child-theme and have spent many hours trying to find the right template_part to amend to suit my theme. I have managed to do so for loop-forums and loop-single-forum for Forum page but now have moved to Topic page and thought the two templates I needed were loop-topics and loop-single-topic but they don’t have the section I want to remove ie. bbp-template-notice info.

    Is there somewhere I can find the hierarchy of pages and template hierarchy or can anyone point me in the right direction please?

Viewing 1 replies (of 1 total)
  • @robkk

    Moderator

    Sorry for the late reply, just noticed your reply was marked as spam and was pending review for some reason.

    The file you need to edit is content-single-topic.php

    The code is <?php bbp_single_topic_description(); ?>

    Without any template edits, you can also place this in your child theme or in a functionality plugin.

    add_filter( 'bbp_get_single_forum_description', 'ja_return_blank' );
    add_filter( 'bbp_get_single_topic_description', 'ja_return_blank' );
    
    function ja_return_blank() {
        return '';
    }

    There is a plan to create a guide to show the template hierarchy in better detail.

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