Notifications
Clear all

wpForo 1.x.x [Closed] How to check that site page is a wpforo page?

5 Posts
2 Users
0 Likes
2,379 Views
Posts: 5
 CMTV
Topic starter
(@cmtv)
Active Member
Joined: 7 years ago

 Hello!

I want to remove <h1> title from forum pages. In order to do that I need to somehow know whether current page is generating by wpforo or just wordpress.

Is there a function (like "is_bbpress()") which tells me that it is a forum page?

P.S: Thank you for wpForo. It is really great.

4 Replies
Posts: 5
 CMTV
Topic starter
(@cmtv)
Active Member
Joined: 7 years ago

Ok I have found the solution.

There is a function called "is_wpforo_page()" which accepts one optional argument "url" and it does exactly what I was asking for. So it may be used this way:

if(is_wpforo_page()) {
// it is a forum page
}

 

BlackRaz
Posts: 406
Admin
(@blackraz)
Contributor
Joined: 7 years ago

Hi CMTV.

wpForo have a feature for disabling "<h1> title in forum pages".

Please read this doc: https://wpforo.com/docs/root/wpforo-settings/features/

Posts: 5
 CMTV
Topic starter
(@cmtv)
Active Member
Joined: 7 years ago

Thank you! But it was disabled and I still saw <h1> (Twenty Seventeen theme). Probably some bugs or whatever.

BlackRaz
Posts: 406
Admin
(@blackraz)
Contributor
Joined: 7 years ago
Posted by: CMTV

 

Thank you! But it was disabled and I still saw <h1> (Twenty Seventeen theme). Probably some bugs or whatever.

   

Maybe cache, delete all caches from cache plugins, and in browser do ctrl + F5