Help from Bens Custom Component video

@ben I have the following text code

<h2 class="text-4xl font-bold">The First slide</h2>

Scroll Down for next slide

I want to try to add the equivalent line in your video to make text dynamic:

@text (“heading”, default: "Start using Element”) so that “THE FIRST SLIDE” Above in text becomes dynamic.

I have tried adding the @text code so I can change it but get an error. Can you please tell me where I add the coed and what I delete to make it work please and THANKS!

Okay, so this code:

<h2 class="text-4xl font-bold">The First slide</h2>

Should look like this:

<h2 class="text-4xl font-bold">@text("heading", default: "Hello World!")</h2>

The text should then be editable. Let me know how you get on :slight_smile:

PERFECT ALL DONE AMAZING what you can do when you know how! THANKS ONCE AGIN YOU LITTLE STAR!!

1 Like