Skip to:
Content
Pages
Categories
Search
Top
Bottom

How can I modify the content-archive-forum.php using custom plugin?


  • jack_tyler
    Participant

    @jack_tyler

    Hi Guys,

    Anyone knows how to modify the content-archive-forum.php located in wp-content\plugins\bbpress\templates\default\bbpress using a custom plugin(not in the theme)? Is it possible?

Viewing 4 replies - 1 through 4 (of 4 total)
  • You can hook for this function
    bbp_template_before_forums_index
    or
    bbp_template_after_forums_index


    jack_tyler
    Participant

    @jack_tyler

    Hi @siamlottery,

    Thank you for your response. What I want to do is to add a custom HTML/PHP above the <div id="bbpress-forums"> as you can see on this screenshot https://www.screencast.com/t/C1AiIkH6

    if above that div id maybe you can directly add that html/php code and don’t forget when you update bbpress.


    aravoth
    Participant

    @aravoth

    Make a child theme for your wordpress theme, copy the folder content\plugins\bbpress\templates\default\bbpress into your child theme, edit the contents of that file as much as you need without affecting the actual plugin files.

    it’s not a plugin, it becomes part of your actual theme, making your changes immune to updates for the most part.

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