Embed your P5JS sketches in posts and pages in a responsive way
As of April 2026, Responsive P5JS for WP is a WordPress p5js plugin with 100 active installations and a 5/5 rating from 2 reviews. It has been downloaded 8.4K+ times in total. Requires WordPress 2.8+ and PHP 5.0+. Available on WordPress.org since 2019. Last updated 3 years ago — may have compatibility concerns. Top alternative: Easy p5.js Block.
1. Create a new sub-directory in the /uploads/p5js/ directory (using FTP):
2. Upload all files and directories (index.html, scetch.js, libraries, etc) of your P5JS sketch to the new WordPress /uploads/p5js/[sketch_folder] directory.
3. Add a short code to your post or page
Attributes
sketchfolder: the name of your P5JS sketch (REQUIRED)
canvaswidth: the width of the sketch, should be the same as in your creattecanvas() statement (REQUIRED)
canvasheight: the height of the sketch, should be the same as in your creattecanvas() statement (REQUIRED)
bordersize: size of the border in pix (OPTIONAL, default: 0px)
bordercolor: color of the border around the sketch (OPTIONAL, default: no border, only works when you also define a bor…
| WordPress | 2.8+ requiredTested up to 6.0.11 |
| PHP | 5.0+ required |
Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.