Tagged: sidebar
Hi,
I am setting up a bbpress forum on a website unsing enfold. I want to have a right sidebar on all forum related pages. On the page where the forum index is displayed it’s showing. However, if you go one level deeper the sidebar is not there anymore. How can I make the sidebar appear everyhwere as in your support forum?
Best regards, Peter
Hey P3T3R_0ne,
Thank you for the inquiry.
Make sure that the sidebar for pages and single entries are enabled in the Enfold > Sidebar Settings panel. Are you using the advance layout builder for the forum pages?
Best regards,
Ismael
Hi Ismael,
the sidebar settings for single entries was disabled. I have enabled it now.
Yes, I use the advance layout builder for the forum page. Make Textblog and put the forum index shortcode inside. Is this the best way to do it?
Best regards, Peter
Hi,
Thank you for the update.
Is is working now? We also edited the community-forum page and set the Layout > Sidebar Settings to “Right Sidebar”.
Best regards,
Ismael
Hi,
thank you. it is working now.
One additional question though. As the sidebar for single entries is now enabled there is also a sidebar for individual blog posts. In case I did not want to have a sidebar for blog posts, but for the forum pages, what would I need to do to achieve that?
Hi,
You can use this filter in the functions.php file to change the layout of the single post pages.
/* remove sidebar on single post pages */
function avia_change_post_layout($layout, $post_id) {
if( is_singular('post') ) {
$layout['current'] = $layout['fullsize'];
$layout['current']['main'] = 'fullsize';
}
return $layout;
}
add_filter('avia_layout_filter', 'avia_change_post_layout', 10, 2);
Thank you for your patience.
Best regards,
Ismael
Hi Ismael,
thank you for the code and clarification. I have no further questions on this issue. Thank you and best regards,
Peter
Hi,
If you need additional help, please let us know here in the forums.
Best regards,
Jordan Shannon