Conversation
supportHey inserter I have a plugin that generates membership info table on a given page X with a shortcode. At every plugin upgrade page x is wiped for all content, so building explanatory stuff for a landing page is pointless. I have designed a new page that will be my frontend and now I insert the wiping page x in-here. It appears that all css does not reach my frontend page so everything looks narrow like mobile and not in a table. How it looks in page X How it looks live (Scroll down for the insert) FYI: I have placed the insert page block inside group block (width 1280px) This topic was modified 1 year, 8 months ago by hebhansen .
Other plugins often enqueue their scripts and styles in nonstandard ways, so Insert Pages needs custom code to fetch them for any inserted page. For example: https://github.com/uhm-coe/insert-pages/blob/master/insert-pages.php#L550-L569 If the plugin that generates your membership table is open source, we can inspect the code and see if we can build that integration. Otherwise, if we don’t have access to view the code, you’ll have to reach out to the maintainers and request instructions or documentation on how to enqueue the CSS.
Hey @figureone The plugin providing this member info table is WCFM Membership . It’s a free plugin and available in the wp repository. I assume this is also the plugin wiping that page that at times see an update. The original wiped page is here: https://svalinnart.com/artist-application/ I moved the page with content and the insert to here: https://svalinnart.com/artist-membership/ If there’s a fix for this, it would be brilliant. Thx
Looking at the code, I think you should be using the [wcfm_vendor_membership] shortcode from the WCFM Membership plugin instead of Insert Pages here. I’m unable to enqueue the scripts and styles because there is a check in their code to only load them on the assigned Membership page, or a page that has that shortcode: https://plugins.trac.wordpress.org/browser/wc-multivendor-membership/trunk/core/class-wcfmvm-frontend.php#L977 In my test, that shortcode rendered the Membership table appropriately (and the styles and scripts were also loaded in the Insert Page block I had created on the same page).
I used to be able to insert this page though. If I insert the shortcode direct. The page is wiped when they run an upgrade. That’s the point of inserting using your plugin. Thx
Other plugins often enqueue their scripts and styles in nonstandard ways, so Insert Pages needs custom code to fetch them for any inserted page. For example: https://github.com/uhm-coe/insert-pages/blob/master/insert-pages.php#L550-L569 If the plugin that generates your membership table is open source, we can inspect the code and see if we can build that integration. Otherwise, if we don’t have access to view the code, you’ll have to reach out to the maintainers and request instructions or documentation on how to enqueue the CSS.
Hey @figureone The plugin providing this member info table is WCFM Membership . It’s a free plugin and available in the wp repository. I assume this is also the plugin wiping that page that at times see an update. The original wiped page is here: https://svalinnart.com/artist-application/ I moved the page with content and the insert to here: https://svalinnart.com/artist-membership/ If there’s a fix for this, it would be brilliant. Thx
Looking at the code, I think you should be using the [wcfm_vendor_membership] shortcode from the WCFM Membership plugin instead of Insert Pages here. I’m unable to enqueue the scripts and styles because there is a check in their code to only load them on the assigned Membership page, or a page that has that shortcode: https://plugins.trac.wordpress.org/browser/wc-multivendor-membership/trunk/core/class-wcfmvm-frontend.php#L977 In my test, that shortcode rendered the Membership table appropriately (and the styles and scripts were also loaded in the Insert Page block I had created on the same page).
I used to be able to insert this page though. If I insert the shortcode direct. The page is wiped when they run an upgrade. That’s the point of inserting using your plugin. Thx