This is a limitation you’ll hit with static sites in general – nothing can be dynamic, because then it wouldn’t be static 😉
I had a quick look at the post Robin made – if what her plugin collects is output as inline JS on the page (as it probably would be with wp_localize_script), it should work fine with Simply Static, although with the proviso that the code that is output would be the options at site generation time, and obviously wouldn’t be dynamic after that.
In general you wouldn’t be able to re-add dynamic functionality relying on WordPress with one PHP file, as you’d need the entire WordPress framework present to process it (so then, there’d be no point going static at all). Adding some custom code for some simple dynamic functionality would be fine, but you’d then also lose the benefit of being able to use super-fast static hosting options like AWS’ S3.
So it would kind of depend on your situation… having said all of that, it might even just be a missing script that you need to include in Simply Static’s settings! Are there any console errors – perhaps 404s on looking for scripts that Robin’s plugin uses? If not you might need to look at re-implementing the functionality in a purely frontend way, JS only.
Sure appreciate…will look into possible errors further.
Regards,
Jim P.
Our students have figured out an entirely different cause of this problem: the backstretch image path is specified incorrectly, e.g.:
var BackStretchImg = {"src":".\/wp-content\/uploads\/sites\/430\/2018\/02\/228153a4-a451-4bdd-aa80-92be83a5ff03_1.78614d02d1f2372b2150abf18c992775.jpg"};
should actually be
var BackStretchImg = {"src":".\/..\/..\/..\/..\/wp-content\/uploads\/sites\/430\/2018\/02\/228153a4-a451-4bdd-aa80-92be83a5ff03_1.78614d02d1f2372b2150abf18c992775.jpg"};
where the Simply Static directory structure (at least in our cases, with “Day and name” permalink settings) for each post is multiple directories inside the root.
They are, at present, doing a global find/replace, but (unless our diagnosis is incorrect) a small bug fix would be great!
Sure appreciate,
Jim P.