Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: Genesis remove a widget area

@robkk

Moderator

I was just pointing out that its possible that you may need to use another conditional as well if you did create a “forum page”.

So you would possibly need another conditional for a user created “forum page”. If you didn’t already make sure that the “forum page” was set to have the same page slug as the default forums slug in your site set in Settings > Forums.

An example of the additional conditional you would use would be is_page{1} where “1” is the specific page ID of your “forums page”.

if (!is_bbpress() || is_page(1) ) {

You can also use is_page(‘forums’) as well instead.

https://developer.wordpress.org/reference/functions/is_page/

I usually do not say use a “forums page” as it is not recommended during setup, but it could be useful to workaround bugs that I think usually happens when using a Genesis theme, but I guess use it until the bug is fixed in bbPress/Genesis. Well if there is still a bug.

I would contact your theme developers support since you have a paid theme, and they can help you better since they understand the code in that specific theme, and only if you really want to dig into the code and modify it like your trying to do, or you can just use a plugin like Widget Logic to use a conditional to hide/display widgets depending on certain conditionals like is_bbpress() and is_page{}.

Skip to toolbar