ID zu template-part hinzufügen (FSE)

[ad_1]

Ich möchte eine ID zu einem Template-Part hinzufügen. Ohne Wrapper.

Die Template-Part Datei liegt hier /parts/template.html. Die Template-Part Datei wird in meinem Template, welches hier liegt /templates/page.html, mit diesem Code gezogen:

<!-- wp:template-part {"slug":"template","className":"template"} /-->

Was mir diesen Output erzeugt

<div class="template wp-block-template-part">

Zu diesem Output soll die ID hinzugefügt werden, damit ich folgendes Ergebnis bekomme:

<div id="my-ID" class="template wp-block-template-part">

Wie ist das möglich?

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer