Notifications
Clear all

Limited Support

Our team is currently on holiday, so support will be limited during this period. Response times may be slower than usual, and some inquiries may be delayed.
We appreciate your patience and understanding, and we’ll resume our usual support by the end of August.

 

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

5 Posts
2 Users
0 Reactions
2,784 Views
Posts: 5
 CMTV
Topic starter
(@cmtv)
Active Member
Joined: 9 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: 9 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: 396
Admin
(@blackraz)
Contributor
Joined: 9 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: 9 years ago

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

BlackRaz
Posts: 396
Admin
(@blackraz)
Contributor
Joined: 9 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