Site logo

Archived topic

Where to add a canvas id?

3 replies · Started by Kevin on December 12, 2022

Viewing posts 1–4 of 4

Trying to play around with some JS stuff which requires a canvas ID. I use GP premium and block pro. Kinda new at using <canvas>. Any suggestions on where/how to add a canvas id to a block element?

Hi there,

there are not blocks that add a canvas element to the page.
Instead add a HTML Block and inside that add your HTML eg.

<canvas id="your-canvas-id" width="600" height="300"></canvas>

Include the other attributes you require, i added the width and height as an example.

awesome, thanks!

You're welcome!

This archived topic is closed to new replies.