Site logo

[Resolved] Where to add a canvas id?

Home Forums Support [Resolved] Where to add a canvas id?

Home Forums Support Where to add a canvas id?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2459005
    Kevin

    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?

    #2459206
    David
    Staff
    Customer Support

    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.

    #2459209
    Kevin

    awesome, thanks!

    #2460110
    David
    Staff
    Customer Support

    You’re welcome!

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.