Skip to main content
improve answer
Source Link
LucScu
  • 2.4k
  • 30
  • 40

Here isIt still does not seem possible to set a title in the head section and translate it, but you could create a custom customer_account_forgotpassword.xml to fix the issue with this code for @zzpaul comment above

<referenceBlock name="page.main.title"> <arguments> <argument name="title" xsi:type="string" translate="true">Forgot Your Password</argument> </arguments> </referenceBlock> 

Just use it in your custom customer_account_forgotpassword.xml

From Devdocs :

The <action> instruction is deprecated. If the method implementation allows, use the <argument> for <block> or <referenceBlock> to access the block public API.

Here is the code for @zzpaul comment above

<referenceBlock name="page.main.title"> <arguments> <argument name="title" xsi:type="string" translate="true">Forgot Your Password</argument> </arguments> </referenceBlock> 

Just use it in your custom customer_account_forgotpassword.xml

From Devdocs :

The <action> instruction is deprecated. If the method implementation allows, use the <argument> for <block> or <referenceBlock> to access the block public API.

It still does not seem possible to set a title in the head section and translate it, but you could create a custom customer_account_forgotpassword.xml to fix the issue with this code

<referenceBlock name="page.main.title"> <arguments> <argument name="title" xsi:type="string" translate="true">Forgot Your Password</argument> </arguments> </referenceBlock> 

From Devdocs :

The <action> instruction is deprecated. If the method implementation allows, use the <argument> for <block> or <referenceBlock> to access the block public API.

adding why this method is more advisable, (the other is deprecated)
Source Link

Here is the code for @zzpaul comment above

<referenceBlock name="page.main.title"> <arguments> <argument name="title" xsi:type="string" translate="true">Forgot Your Password</argument> </arguments> </referenceBlock> 

Just use it in your custom customer_account_forgotpassword.xml

From Devdocs :

The <action> instruction is deprecated. If the method implementation allows, use the <argument> for <block> or <referenceBlock> to access the block public API.

Here is the code for @zzpaul comment above

<referenceBlock name="page.main.title"> <arguments> <argument name="title" xsi:type="string" translate="true">Forgot Your Password</argument> </arguments> </referenceBlock> 

Just use it in your custom customer_account_forgotpassword.xml

Here is the code for @zzpaul comment above

<referenceBlock name="page.main.title"> <arguments> <argument name="title" xsi:type="string" translate="true">Forgot Your Password</argument> </arguments> </referenceBlock> 

Just use it in your custom customer_account_forgotpassword.xml

From Devdocs :

The <action> instruction is deprecated. If the method implementation allows, use the <argument> for <block> or <referenceBlock> to access the block public API.

Here is the code for @zzpaul comment above

<referenceBlock name="page.main.title"> <arguments> <argument name="title" xsi:type="string" translate="true">Forgot Your Password</argument> <arguments></arguments> </referenceBlock> 

justJust use it in your custom customer_account_forgotpassword.xml

Here the code for @zzpaul comment above

<referenceBlock name="page.main.title"> <arguments> <argument name="title" xsi:type="string" translate="true">Forgot Your Password</argument> <arguments> </referenceBlock> 

just use it in your custom customer_account_forgotpassword.xml

Here is the code for @zzpaul comment above

<referenceBlock name="page.main.title"> <arguments> <argument name="title" xsi:type="string" translate="true">Forgot Your Password</argument> </arguments> </referenceBlock> 

Just use it in your custom customer_account_forgotpassword.xml

Source Link
LucScu
  • 2.4k
  • 30
  • 40
Loading