I have already performed some simple modifications to the custom.css (header color, text color and some padding) but I would like a slideshow or image in the upper left and a heading to the right with ‘‘Create a group’’ just underneath.
I am guessing that it should be possible to modify a specific Buddypress .php file to do this but I am not sure which one to tweak and what code to include to include a picture or BeaverBuilder slideshow.
What code would I need to insert two columns (equally wide), left column with picture or BeaverBuilder slideshow, right column with main title (<h1 class=“main-title”><?php buddyboss_page_title(); ?></h1>). Below it should be (<span class=“create-a-group”><?php echo bp_get_group_create_button() ?></span>)
Sorry but there’s currently no way to call a BB module into a PHP template. You could try a different plugin for the slideshow though which offers a shortcode and you can place it there.
I guess I am reaching the limits of BeaverBuilder. I hope it will be possible to include BB shortcode in a PHP template in the future because you have a really great plugin going here
I’ve a workaround I can offer you but it’s a bit tricky. You can use the Insert Pages plugin. Basically, what it does is it allows you to call the content of a page using a shortcode. You can then place your slider/content on a specific page and call it via the shortcode in your PHP file. The other thing you’ll need is to load that page’s assets globally using our fl_builder_global_posts filter. Check the link below for more info on the latter. http://forum.wpbeaverbuilder.com/knowledge-base/filter-reference/
Actually, BB only loads the assets(CSS/JS files) required for that page alone(within the loop). So if you use the Insert Pages plugin to load in content from another page, the layout will be broken since its assets aren’t present. Using that filter allows us to let WP load the assets for that specific page globally, making it work whatever page you pull its contents into. To answer your question, it won’t affect any of the other sliders you have on the site.
Sorry but it seems the shortcode isn’t working when on the Groups page. I think it’s because you’ve set it as one of your BuddyPress pages? I’m not sure. I did try creating a few test pages and the insert page shortcode work just fine there. Maybe trying placing the shortcode inside the template file of BuddyPress and see if that works? You can probably do it via <?php echo do_shortcode(’[YOUR_SHORT_CODE_HERE]’);?>
I have tried another solution. In this case I insert the following code into BuddyPress index.php: <?php $id = 181; $p = get_page($id); echo apply_filters('the_content', $p->post_content); ?>
This basically inserts the content of page ID=181 into the PHP page.
This solution works but has the unfortunate side effect of removing all the styling which was so nicely done in BeaverBuilder. Furthermore it removes the slideshow.
I wonder how BB saves the styling? If a specific BB page (including page styling) could somehow be called using a shortcode then Ben’s PHP snippet could be inserted directly into a PHP page:
In the meantime I will try to get in touch with Paul Ryan (author of Insert Pages plugin) to see if has any idea of why his plugin is not working in this case.
That’s what the filter above was for, to make it load all the assets required for post ID 181. But for some reason, it’s not working. I’ll assign another member of the team to check further.
I do understand that but the advantage of having it built into BeaverBuilder would be that you did not have to rely on a third party plugin. Anyway I have also contacted Paul Ryan to see if has any insight into why it’s not working in this specific case.
Oh, you mean pulling the content from another page? I think someone already suggested that. Feel free to skim through the feature requests and vote for it if there’s one. You can add the request if there isn’t.
where I include the index.php file inside BeaverBuilder text content. This method works and I can see the php code being parsed inside BeaverBuilder - Nice!
This plugin may be of use to others as well since it allows insertion of PHP directly inside a text editor. Only downside with this plugin is that its been a while since last update.