I want to show messages to my site visitors whenever necessary no matter which part of the page they are on.
In my scenario, I have a couple of repeaters and when the visitor hits a button on one of the containers I need to show them a message based on their action. I usually create a message-for-visitors using Box and Text element. The problem I am facing here is, this message appears where I placed it while editing the site. I mean, if I keep it on top of the page while editing the site it would appear only at the top of the page no matter which part of the page they are, they maybe at the bottom of the page when hit the button as the repeater has many items/container, and hence the message that is shown at the top of the page is not visible to the visitors.
The following link is to a question I recently posted and I have explained a workaround also in it which worked in a scenario I was in. Now, I only want message to be shown (a warning message) and I do not want the visitors to move from the place where they are on the page. Can somebody suggest me something.
It’s now crucial as I cannot have a website without it. It must be a simple thing but I do not know how to do it.
Hi,
Unfortunately it isn’t possible to use Corvid to change the position of any elements on the page.
What I would suggest would be adding a lightbox that will pop up with the message after the triggered event. I know it isn’t exactly what you are looking for but it would be better than having to scroll up the page.
You can use the openLightbox() function from the wix-window API to achieve this, but you can also do this without code.
Hope this helps!
Dara | Corvid Team
Thanks for your quick response.
I have used the LightBox for the purpose of showing a warning kinda message to the site visitors as you suggested and I made the LightBox 100% transparent except the message area to make it look like a message box.
I wonder why does Wix not have a message-box feature which I think is a necessary one as sites needs to show various types of messages (warning, info, confirmation, etc) regardless of the place where the visitors are on the page.