• I am working on a widget that has some links in a bullet point.

    The site is https://hailey.saltlakewebcentral.com

    The widget is at the bottom.

    I am using the code: <a href="https://hailey.saltlakewebcentral.com/salt-lake-debt-relief?">Mortgage Relief SLC</a>

    This is pretty basic stuff…just standard html that i pasted in from notepad to make sure nothing else came with it.

    I understand that the %E2%80%8E stands for the quote mark.

    How can i fix this problem?

    Quite honestly this should never happen and makes no sense at all to me.

    Ive even tried using…

    <a href=https://hailey.saltlakewebcentral.com/salt-lake-debt-relief>Mortgage Relief SLC</a>

    …with no quotes around the address and to my astonishment it still makes a link out of the code but keeps the %E2%80%8E

    Why is WordPress having such a hard time with such basic HTML?

    Blows my mind, in 10 years of development I’ve never seen this happen!!!

Viewing 15 replies - 1 through 15 (of 28 total)
  • Best guess – you’ve pasted that link in from a word processor or similar rather than typing it. I suspect you’ve got an issue with “curly” quotes in the url.

    Thread Starter worsin

    (@worsin)

    Strange update:

    Testing this in Firefox and Chrome…

    Works in Chrome not in Firefox…seems to be an issue with Firefox method of rendering the web page.

    I’m looking at the widget and it shows just fine. Hover over the link shows ok, i inspected the element (all ok), clicked on the link (pointed to a non existing page).
    One thing crossed my mind. When you pasted the link from Notepad,did you pasted it in the visual or text view (in edit post)?
    Coz,if you pasted HTML code in the visual window,it could add jibberish like %E2%80%8E ??

    Thread Starter worsin

    (@worsin)

    @esmi Not thats not it as i mentioned in post i pasted this directly from notepad which strips out all formatting or additional code.

    Also for me there is only 1 window when using the HTML widget so i pasted in that one.

    Notepad does not remove curly quotes, IIRC. You have to remove them manually.

    Maybe you needed this: <a href=https://hailey.saltlakewebcentral.com/salt-lake-debt-relief/ >Mortgage Relief SLC</a>
    and you corrected it later.

    Thread Starter worsin

    (@worsin)

    @media X I even created a brand new widget from scratch and made a note to paste from notepad into the widget and it still does it.

    Also seeing that it only happens in FF is strange, Chrome has no issue and neither does IE

    What widget is it exactly? Is it a theme widget or something else. You can use regular WP text widget for adding hyperlinks etc.
    EDIT: I just saw the answer about the widget origin.

    Thread Starter worsin

    (@worsin)

    @krishna Yes the trailing / was preventing link from coming up on other browsers (that was my typo) but the %E2%80%8E still exists on FF

    Thread Starter worsin

    (@worsin)

    @media X its the regular wordpress text widget ??

    FWIW, I don’t see any of that in Firefox (Mac) – it’s just:

    <h2>
    <a href="/?page_id=6">Mortgage Relief</a>
    </h2>

    Ditto in Firefox on Win 7

    Thread Starter worsin

    (@worsin)

    Notepad does not remove curly quotes, IIRC. You have to remove them manually.

    Notepad will strip arbitrary code from it but proper HTML still usually requires quotes around the address itself.

    However in wordpress it still works without the quotes, although it doesnt fix the issue in FF.

    Firebug in FF 11.0 (win7)shows
    <a href="https://hailey.saltlakewebcentral.com/salt-lake-debt-relief/">Mortgage Relief SLC</a>

    Thread Starter worsin

    (@worsin)

    @wpyogi & esmi – Are you looking at the Widget at the bottom which i has Bullet Points?

    The code is”

    <ul>
    	<li><a href="https://hailey.saltlakewebcentral.com/salt-lake-debt-relief?/">Mortgage Relief SLC</a></li>
    	<li><a href="https://#">Hailey Credit Monitoring</a></li>
    	<li><a href="https://#">Hailey Debt Settlement</a></li>
    	<li><a href="https://#">Terms of Service</a></li>
    	<li><a href="https://#">Privacy Policy</a></li>
    </ul>

Viewing 15 replies - 1 through 15 (of 28 total)
  • The topic ‘? Added to Links in Widget’ is closed to new replies.