In the passage where I want the image shown, I’ve added the tag “hallway”. It still doesn’t show when I publish to file and playtest it in my web browser. Do I need to add any code in the passage itself?
I’d really appreciate any help. I feel as if I’ve stared myself blind at this problem.
Twine Version: Twine 2
Story Format: Sugarcube 2.30.0
With the semicolon added, it works for me. It did take quite a while to load the first time before the background popped in…any chance that’s what you’re seeing?
That’s interesting. I removed the “[data-tags~=“hallway”]” and that made it work, but I want it to be specific to a certain passage. Is there code I’m missing to add to the passage in question then?
If you have assigned a hallway Passage Tag to the Passage then the data-tags based CSS selector based should work, assuming that the letter casing / spelling is correct and you haven’t added any white space to the start or end of that Passage Tag.