cancel
Showing results for 
Search instead for 
Did you mean: 

Alert message shows on Luma theme but not on custom theme.

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?

2 REPLIES 2

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!

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.