Skip to:
Content
Pages
Categories
Search
Top
Bottom

Template in Extras Directory for Search Results

  • @screenwavemedia

    Participant

    I’m extending an existing WordPress theme with bbpress functionality. I’ve gotten everything up and running except I can’t seem to find the base template for search results to customize everything AROUND the BBPress search results code. It looks like by default it’s pulling from page.php or single.php, but I would like to use a more specific template for it. I’m not seeing anything in Extras that fits the bill.

Viewing 3 replies - 1 through 3 (of 3 total)
  • @johnjamesjacoby

    Keymaster

    Check in bbpress/templates/default/bbpress/content-search.php

    bbPress employs some “theme compatibility” magic to insert itself into your existing WordPress theme, and that directory is where those template parts live to try and fill in the gaps

    @screenwavemedia

    Participant

    content-search.php is just the “inner” part of the search. It seems it is defaulting to page.php. However, I’m not seeing anything to differentiate a search page from any other page. It is also interesting to note that the “post type” of the search results page is just a blank value.

    @robkk

    Moderator

    @screenwavemedia

    create a copy of page.php rename it to bbpress.php and put a conditional tag into the code.

    i think use bbp_is_search()

    https://codex.bbpress.org/theme-compatibility/getting-started-in-modifying-the-main-bbpress-template/

    bbPress Conditional Tags

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