front-page.php in your theme folder.
Alternatively, I’ve a WordPress mimic plugin I’ll be releasing next week which should solve alot of WP to bbP issues.
You can either put the code in front-page.php
as Kevin told or use if ( bb_is_front() ) { /* Code Here */ }
But is there any function to title. I need slogan in web browser title and need “if is home”. If it is right, then show – My forum slogan.
You can use the bb_is_front
function (my previous comment went in spam).
No, there is no equivalent to the best of my knowledge.
You could write one yourself that tests for the URL or basename of the file/folder you’re in – it’s not ideal, but very little is here.
brilliant, thanks zaerl.
While you’re here mate, are there any more functions like that (for defining testing for pages) ?
Thanks
Thank you!!! This work fine.
Have a nice day!
bb_is_front()
bb_is_forum()
bb_is_tags()
bb_is_tag()
bb_is_topic_edit()
bb_is_topic()
bb_is_feed()
bb_is_search()
bb_is_profile()
bb_is_favorites()
bb_is_view()
bb_is_statistics()
that are all wrappers (a mojor part of them) of the bb_get_location()
function which returns:
front-page
forum-page
tag-page
topic-edit-page
topic-page
feed-page
search-page
profile-page
favorites-page
view-page
stats-page
login-page
register-page