Adding HTML to Form Questions - Code issues

Permalink
Trying to add HTML links to a form question. I'm pretty sure I added the code correctly, but the text and link get repeated within the block. Anyone else get this, and are there any solutions out there

coolrebel
 
jordanlev replied on at Permalink Reply
jordanlev
How exactly did you add this code? Can you post a screenshot of how you're adding it, and then what it looks like repeated -- this will really help track down the issue.
coolrebel replied on at Permalink Reply 2 Attachments
coolrebel
Thanks Jordan,

So this is the code I added + the way it looked when i published (it's not on site right now. I just demoed it)

Tell me what you think

Best
Simon
sg@taglinemachine.com
jordanlev replied on at Permalink Best Answer Reply
jordanlev
I see. It looks like the edit form isn't escaping quotation marks, so the quotation mark in your <a href="... code is confusing it into thinking that's the end of your answer text.

If you change your link to use single quotes instead of double-quotes, like so...
By submitting, I agree to the <a href='/legalpopup/'>Terms and Conditions of Site Use</a>.

... that should do the trick.

This is a bug though and I'll go add it to the bug tracker.
coolrebel replied on at Permalink Reply
coolrebel
It worked!

Two other quick questions...

1. Is there any way to put a script above the </head> tag. Right now if I add the block to header it goes underneath.

2. Can I make a page readhttp://domain.com/thanks.php - when i tried to change props, it turned it into /thanks-php/

many thanks, Jordan
jordanlev replied on at Permalink Reply
jordanlev
Great! You should mark my answer so it's easier for people to find in the future. As for yoru other questions...

1) Scripts that go in the <head> need to be added to your theme's template files (or by a block's code if this is for a specific block). If you're just editing the site and don't have any control over the theme files, I'm not sure how you can achieve this.

2) Unfortunately there is no way to do this (that I know of at least). If there is a way, it is probably very complicated and not worth the trouble. May I ask why you want the page to end in ".php", instead of just having it be "http://domain.com/thanks"? It is generally considered better these days to use the latter "pretty url" format over the former (for both SEO purposes and because it is aesthetically cleaner looking for the end-user).
coolrebel replied on at Permalink Reply
coolrebel
1. okay, i'll check on that.

2. the affiliate software i'm using for my site requires a .php page for tracking purposes. if domain.com/thanks/ is a already .php page, i'm guessing it doesn't matter.

thanks again, jordan.