Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Hidden link

Heyo,

I need to make one link text to a passage look like regular body text. Using Sugarcube in twine 2.
I feel like this question must have been asked a thousand times but i guess I'm bad a googling cos i can't find the right answer.

Cheers

Comments

  • edited August 2016
    You could construct the link in several different ways, though it would probably be easiest to use the data-passage attribute on an <a> markup, since you also need to specify a class for the styling as well.

    Add something like the following to your Story Stylesheet:
    .secret.link-internal,
    .secret.link-internal:hover {
    	color: inherit;
    	cursor: text;
    	font-weight: inherit;
    	text-decoration: none;
    }
    
    Then create your secret links like so:
    You <a class="secret" data-passage="Your Passage Here">should not</a> be able to tell where the link is except by blindly clicking.
    
Sign In or Register to comment.