iolevel / wpdotnet-sdk

WordPress compiled to .NET Standard. SDK for ASP.NET Core.
http://www.wpdotnet.com
Other
414 stars 69 forks source link

[Feature] Gutenslider plugin for Wordpress #99

Open marinasundstrom opened 3 years ago

marinasundstrom commented 3 years ago

Description Gutenslider Wordpress plugin does not have a NuGet packages.

Issues I have tried to add and compile the plugin source files manually. Removing unnecessary Debug classes.

The experience in the Gutenberg editor works, but the slider does not render correctly on pages.

Plugin page: https://sv.wordpress.org/plugins/gutenslider/

marinasundstrom commented 3 years ago

@jakubmisek I really would like to know how to make this work.

As I said, the editor experience is working, but the slider itself does not display correctly when viewing page.

jakubmisek commented 3 years ago

I'm just assuming there is some generated javascript that is messed up :) do you have any javascript errors in the browsers' console?

marinasundstrom commented 3 years ago

@jakubmisek No, and that is strange. No, errors (or warnings). The images just display after each other on the page.

I have tried another plugin too (Getwid). The markup is rendered but the JavaScript does not run. I wonder why? Is it related to WP.NET?

I copied the plugin files to the directory and it compiled without problems.

jakubmisek commented 3 years ago

feels like something in wordpress did not enqueue the .js file to "some" array, so it's not added to the HTML code .. probably easiest would be to compare the output from regular wordpress+php with wpdotnet.

jakubmisek commented 3 years ago

I'm experiencing a similar issue with some themes, like it's missing images

marinasundstrom commented 3 years ago

Other plugins do not work either. It is in the frontend. The editor experience works.

jakubmisek commented 3 years ago

thanks, I still can't find the cause of it. Do you have any hints, or observations, what's going on? I would suspect something in PHP arrays, maybe reference counting going wrong.

hez2010 commented 3 years ago

Same for syntaxhighlight involved: it works in editor but not in the published page, I have to add "brush:language" to custom css (which should be done automatically by the plugin) to make it display correctly.

jakubmisek commented 3 years ago

@hez2010 so it might be a missing CSS, seems like WordPress internally misses the stylesheet file

marinasundstrom commented 3 years ago

@jakubmisek I also noticed when I wrote my own plugin that the activation hook did not execute when deactivating and re-activating it. I had to restart the WP app for the hook to execute on re-activation. I assume this is not an expected behavior.