Skip to:
Content
Pages
Categories
Search
Top
Bottom

Adding Custom HTML To Forums


  • RedTravelMaster
    Participant

    @redtravelmaster

    Hello,

    I’d like to be able to add some custom html code to my forum pages, under the forum title and breadcrumbs, but before the first forum topic. How would I go about doing this?

    Thank you for any assistance.

    Ron

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

  • Robin W
    Moderator

    @robin-w

    add_action ('bbp_template_before_single_forum' , 'rew_add_html' ) ;
    
    function rew_add_html () {
    	echo '<b>hello</b>';
    }

    and amend echo '<b>hello</b>'; to what you want

    Put this in your child theme’s function file –

    ie wp-content/themes/%your-theme-name%/functions.php

    where %your-theme-name% is the name of your theme

    or use

    Code Snippets


    RedTravelMaster
    Participant

    @redtravelmaster

    Thank you very much!

    Ron


    Robin W
    Moderator

    @robin-w

    🙂

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