Page content in widget loses styling.

Howdy,

I have been using this plugin - https://wordpress.org/plugins/insert-pages/ - to insert page content into footers & sidebars to make it easy for the client to edit but in it’s latest update it conflicts with the text editor window in BB. It removes the options bar & makes it unusable.

I have then found these plugins that do the same but do not carry the page styling from BB with them:

  1. https://wordpress.org/plugins/page-in-widget/
  2. https://wordpress.org/plugins/custom-content-shortcode/

Last time I had to add the below snippet to make the styling work correctly by adding specific page id’s. Does this need to adjusted in some way?

function my_global_builder_posts($post_ids) {
$post_ids[] = ‘551’;
return $post_ids;
}
add_filter(‘fl_builder_global_posts’, ‘my_global_builder_posts’);

I have a live site which I can provide the details for if you would like. It’s this site - http://adamstownearlylearning.org.au/2015/

Thanks,
Luke

Hey Luke,

I am going to have one of the other guys take a look at this, but in the meantime, have a look at this thread as it is possible you’ll just need to adjust your code a bit based on a recent update. Let me know if that helps!

Best,
Billy

Hey Luke! Sorry you’re having trouble. It looks like we may have introduced a bug with the fl_builder_global_posts filter in a recent update. To clarify, you have a page that you built with Beaver Builder that you are including on another page, right? Where are you having an issue with the editor? Is it on the page where you’re using the [insert] shortcode or on the page you’re including?

If you can provide the login details to your site, I’d be curious to have a look at what’s going on there.

Thanks!

Hi Robby,

No worries, it’s much less trouble then I had with clients & shortcode soup!

I’ll just clarify my situation as I’ve tried a fix which didn’t work & I’ll reply in private with the login detail.

Original & current setup - I have the plugin “Insert Pages” by Paul Ryan adding page content to the footer that has some text & two buttons. The idea being it’s easier for clients to edit that page with BB instead of using the widgets area.

This displays the content correctly but removes the text editor controls when you go to edit s text box.

A fix I tried - I tried finding an alternative to the “Insert Pages” plugin & found plugins called “Custom Content shortcode” & “Page In Widget”. These are still installed if you want to try them out.

They both didn’t effect the text editor & display the content but the styling does not display correctly. i.e the buttons are just text links. This is the issue I had previously & was fixed with the .php snippet filtering based on specific page ID’s

So unsure if the text editor conflict or the styling is easier to fix but either would work.

Thanks,
Luke

[Content Hidden]

Hi Luke. Thanks for explaining. It looks like the Insert Pages plugin is causing a conflict with the TinyMCE text editor. When I disable the plugin, the text editor starts working normally again. I think this is going to be the easier of the two to fix. I am going to make a bug report for this conflict and we’ll look into it in closer detail. Sorry for the trouble and thanks for the heads up.

Hi Robby,

Thanks for the reply, sounds good.

I realise this is probably outside your normal support boundaries as it involves a third party plugin but do you think it would get looked at any time soon?

Unfortunately I reply on this plugin heavily so will need to figure out an interim solution for my existing sites. which isn’t your issue but just wondering if I should wait or not.

Thanks again for your help on this.

Thanks,
Luke

Hey Luke,

We have a large release planned for sometime next week and if this seems like an easy bug our lead dev can get it, we’ll certainly do so. I can’t guarantee it at the moment though as the guys are OOO at the moment. We’ll get back to you soon!

Best,
Billy

Hi Billy,

I completely understand, thanks for the reply, I just wasn’t sure of how your schedules/timelines worked.

I’ll test it with the next update & I’ll leave this unresolved in case I find a solution in the next week as well.

Thanks,
Luke

Hi Luke,

I tested this out and it looks like the Insert Pages plugin is only coded to work with the text editor in wp-admin, not the frontend. When the text editor is loaded on the frontend, the Insert Pages plugin is causing a few errors because it is expecting things from the admin environment to be available.

The good news is that it looks like the plugin author is very active on wordpress.org. I’ve posted a support request and will let you know if I hear anything back. You can follow along on that here…

https://wordpress.org/support/topic/breaks-the-editor-when-called-on-the-frontend-using-wp_editor?replies=1

Thanks,
Justin

Hi Luke,

The plugin author got back to me and said he’ll get a fix out this week! Keep an eye out for that.

Justin

Hi Justin,

That’s great, I am still working on it myself so will double post any positive results.

Cheers