- This topic has 9 replies, 3 voices, and was last updated 7 years, 7 months ago by
Tom.
-
AuthorPosts
-
September 2, 2018 at 12:55 am #666425
Laurent
Hi,
I have bbpress and set the forum root on a WP Page in which I use BBP shortcode to display forums (method 2 of installing bbpress). I then set the GP Elements to content/sidebar and remove title. But I end up with a fullwidth page and title is still here. If I type something on the page it appears, and I’ve looked into the template files and it uses the GP ones as intended.
Any idea what is happening ?
Thanks
September 2, 2018 at 8:49 am #666722Leo
StaffCustomer SupportHi there,
Any chance you can link us to the site in question?
You can edit the original topic and use the private URL field.
Let me know 🙂
September 2, 2018 at 2:49 pm #666918Laurent
Hi,
Site is protected but I opened it for this page, you’ll see no forums but you’ll see the layout. If you need more, I’ll grant you an access.
Thanks
September 2, 2018 at 7:48 pm #666981Tom
Lead DeveloperLead DeveloperHi there,
What display rule did you use exactly? The page or the archive?
September 2, 2018 at 11:29 pm #667066Laurent
I have no display rules it’s not an Element as in Apparence -> Elements it’s on the Forums page, under the content where I can select what I want to be displayed and how (more of Deactivate Elements than Elements themselves).
I have my forums set to slug = forums.
I created a page with slug forums.
In this page, I’ve set the page to “Content/Sidebar” but nothing happens. If I set remove Title, it doesnt work either.Unless I’m mistaken, that’s the procedure for installing bbpress right ?
Thanks
September 3, 2018 at 9:46 am #667625Tom
Lead DeveloperLead DeveloperAh, metabox values don’t work on index pages in WordPress. The same applies for the blog page for example.
You’d be better off using the Elements module for this specific purpose.
September 3, 2018 at 9:53 am #667631Laurent
Ahh….ok 🙂 How can I achieve that with Elements Module ?
September 3, 2018 at 7:00 pm #667950Tom
Lead DeveloperLead DeveloperFirst I would check to see if there Display Rules exist within the Display Rules tab when creating your Element.
If that doesn’t work, we can use a filter. When you create a Header element, take note of the ID.
Then do something like this:
add_filter( 'generate_header_element_display', function( $display, $element_id ) { if ( 10 === $element_id ) { if ( function_exists( 'is_bbpress' ) && is_bbpress() ) { return true; } } return $display; }, 10, 2 );September 3, 2018 at 11:05 pm #668028Laurent
Thanks that worked 🙂
September 4, 2018 at 8:38 am #668506Tom
Lead DeveloperLead DeveloperYou’re welcome 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.