• Oliver Schmid

    (@webgarten)


    I create some FSE Pattern template in WordPress 6.1. Now I need to add some individual HTML code to it. When I use the custom HTML element it works but my customer will see the HTML code and get shocked when he edits the content.

    Is there a way to force showing it in Preview mode or is there another way to use custom HTML?

Viewing 2 replies - 1 through 2 (of 2 total)
  • luisherranz

    (@luisherranz)

    Why don’t you create a custom block that outputs the desired HTML? That way, you can control what your customer can see and edit.

    Thread Starter Oliver Schmid

    (@webgarten)

    Thanks. Seems more complicate. I use a MAMP server and don’t have Node and NPM installed it. I am more kind of HTML CSS dude.

    Using patterns seems much easier as I just need to add the file to the pattern directory.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to add HTML code to FSE Pattern’ is closed to new replies.