Gå direkt till huvudinnehållet

WordPress Hjälp

Add a Custom HTML block in WordPress

You can add a block with custom HTML to your WordPress website.

  1. Open the block editor (Need help opening the block editor?).
  2. Select Add block.
  3. Select Custom HTML from the Formatting section.
  4. Paste your HTML code snippet into the field provided.
  5. You can preview the code by selecting the Preview tab.
Animation that describes how to add a custom html block

Note: Please remember to update your page or post after editing.

Related steps

More info

  • You can find more specific details about using HTML on your WordPress site in the support documentation.
  • What is CoBlocks?(needs link)
  • Discover more about the block editor for WordPress in their support documentation.

Community-relaterat

martini21's Avatar
How to add custom html

1 Svar

Last posted 5 months ago.

ClassicVinylGuy's Avatar
Custom HTML Image in Email

1 Svar

Last posted almost 3 years ago.

OakTree2019's Avatar
Support for GDPR cookie blockers

1 Svar

Last posted almost 2 years ago.

SantaBroo's Avatar
Custom HTML and CSS

3 Svar

Last posted 5 months ago.

AryanB's Avatar
Insert HTML in Wordpress

6 Svar

Last posted over 3 years ago.

Ser du inte vad du letar efter? Sök i Community