Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to Remove Forum: and Topic: prefixes on page title?

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

  • Jared Atchison
    Moderator

    @jaredatch

    Using the bbp_title filter you can change or modify the titles if you want.

    However there is no quick switch to turn that off unfortunately.


    Haris Nadeem
    Member

    @monst3r

    How do I use that filter? Please guide me to a link/documentation where I can read on its usage. Thanks for the quick reply!


    Jared Atchison
    Moderator

    @jaredatch

    You would use add_filter. Check out https://codex.wordpress.org/Function_Reference/add_filter

    You can see how the title is constructed if you look at bbpress/bbp-includes/bbp-common-template.php starting around like 2026 or so. Look for function bbp_title().


    Haris Nadeem
    Member

    @monst3r

    Thanks a lot jaredatch! I just fixed them :)


    Jared Atchison
    Moderator

    @jaredatch

    No problem.

    Hopefully in a future release (2.2) this will be a bit easier and their will be some direct filters in place :)


    Haris Nadeem
    Member

    @monst3r

    That would be really great!

    One more thing, can you please tell how can I remove this box from the FORUM page and similarly from the TOPIC page? http://img837.imageshack.us/img837/6052/bbpre.jpg


    Jared Atchison
    Moderator

    @jaredatch

    It depends on what your setup is, however you should be able to put this in your theme’s function.php and get it to work. The reason I know this is because I’m doing it on one of my bbPress installs.

    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 '';
    }


    Haris Nadeem
    Member

    @monst3r

    Thanks! That perfectly worked with my theme as well =)

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