- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2019
04:52 AM
09-28-2019
04:52 AM
Alert message shows on Luma theme but not on custom theme.
I'm using a helpdesk extension with a custom theme that is not displaying the message "Ticket has been saved." when a user submits the form. If I switch the theme to the Luma theme the message appears as it should. How do I get this to work with my custom theme?
Labels:
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2019
05:03 AM
09-28-2019
05:03 AM
Re: Alert message shows on Luma theme but not on custom theme.
Hi @TexasGreg,
Make sure that you have called message block in your theme.
You can try using below method.
You need to assign a placeholder for the message through frontend layout xml used in the module as given below inside the <body> tag:
<referenceContainer name="page.messages">
<block class="Magento\Framework\View\Element\Template" name="ajax.message.placeholder" template="Magento_Theme::html/messages.phtml"/>
<block class="Magento\Framework\View\Element\Messages" name="messages" as="messages" template="Magento_Theme::messages.phtml"/>
</referenceContainer>
I hope it will help you!
Make sure that you have called message block in your theme.
You can try using below method.
You need to assign a placeholder for the message through frontend layout xml used in the module as given below inside the <body> tag:
<referenceContainer name="page.messages">
<block class="Magento\Framework\View\Element\Template" name="ajax.message.placeholder" template="Magento_Theme::html/messages.phtml"/>
<block class="Magento\Framework\View\Element\Messages" name="messages" as="messages" template="Magento_Theme::messages.phtml"/>
</referenceContainer>
I hope it will help you!
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2019
06:43 AM
09-28-2019
06:43 AM
Re: Alert message shows on Luma theme but not on custom theme.
Thanks for the reply Vimal but this is Greek to me. I don't know where to start with your answer.