Hello,
I was testing out some codes to make a custom community page in Bricks Builder like the roadmaps page: https://community.wpmanageninja.com/road-maps/
I made these shortcodes to render header and sidebar on other page:
function render_community_header() {
ob_start();
do_action('fluent_community/portal_header', []);
return ob_get_clean();
}
add_shortcode('community_header', 'render_community_header');
function render_community_sidebar() {
ob_start();
do_action('fluent_community/portal_sidebar', []);
return ob_get_clean();
}
add_shortcode('community_sidebar', 'render_community_sidebar');
add_action('wp_enqueue_scripts', function () {
do_action('fluent_community/enqueue_global_assets');
});
It seems to work ok, but not all styling of the sidebar is working and the mobile menu does not work. Can someone point me in the right direction?
I can't get your code to work, but you can add the custom css for the sidebar as a snippet also and it will load here. You can either call all the FC css files, or just add individual styles for the sidebar.
Ross HoffieΒ Hello, when I look in the inspector the css files: theme-default.css and global.css are loaded also the general JS file is loaded fine in the custom page. But the css from Sidebar does not seem to be completely correct. Also the mobile menu(slideout from left) is not working.