Let's imagine you want to show the text, only if particular Ecwid page is open.
For example you want to add shipping instructions when your customer selects shipping on checkout.
Or you want to display some offers or related products when your customer opens the shopping cart. Or maybe you want to show the custom categories menu that will show things based on the current product/category.
- Download and open it. You will see the demo Ecwid store.
- Add any product to the bag and open it.
- You'll see that the text appears. Open any other page again and the text will disappear.
This happens because special JavaScript code scans the page's hash/anchor and as soon as it changes, the code shows/hides the text.
Feel free to explore the source of the file and use the code to do the same.