I need to set a Vacation message in Magento as I will be closing my store for a week. So far I found that editing text in Demo Store notice works ok. But I am not sure if editing text in Demo Mode and turning it on is a good idea, because I read somewhere that google doesnt like when Demo Mode is turned on Active store, maybe I am wrong.
Any recommendation how should I proceed ? I only need to put a message, I don't want to turn off checkout.
Its not a good idea but for temporary it's working for your store. There is no any side effects of it.
If you don't enable Demo store notice, then you have to add a message using programmatically way.
So change demo store notice is a good way to notify to your customer.
To set a vacation message in Magento without turning off the checkout, you can follow these steps:
Create a New CMS Page:
Insert the CMS Page into the Header or Footer:
<referenceContainer name="header.container"> <block class="Magento\Cms\Block\Block" name="vacation_message"> <arguments> <argument name="block_id" xsi:type="string">vacation_message</argument> </arguments> </block> </referenceContainer>
Replace header.container with footer.container if you want to display the message in the footer.
Save and Deploy:
This approach allows you to display a vacation message to your customers without affecting the checkout functionality. By creating a separate CMS page, you can easily customize the message and manage it independently from your store's other linked in content.