Skip to content

Commit ab8094b

Browse files
authored
XML - Set custom page title
1 parent 5f0240a commit ab8094b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

xml.md

+9
Original file line numberDiff line numberDiff line change
@@ -153,3 +153,12 @@ Only when full page cache application is set to Varnish, ESI blocks are actual.
153153
<attribute name="class" value="my-new-body-class"/>
154154
</body>
155155
```
156+
157+
## Set custom page title
158+
```
159+
<referenceBlock name="page.main.title">
160+
<action method="setPageTitle">
161+
<argument translate="true" name="title" xsi:type="string">My title</argument>
162+
</action>
163+
</referenceBlock>
164+
```

0 commit comments

Comments
 (0)