WordPress.org

Forums

Text Widget Rejects my HTML link (2 posts)

  1. Chad
    Member
    Posted 1 year ago #

    So I know what your thinking... he's using javascript or iframes. Not so. Here is my code:
    <a href="http://preschoolpartners.com/sign-up/"><img src="http://preschoolpartners.com/wp-content/uploads/2014/01/parent_meeting-e1389851693829.jpg" alt="parent meeting" width="100%" /></a>

    When I use this code the little spinning thing by the save button just goes and goes and never stops.

    So here's the other thing I can't figure out. When I use this code:
    <a href=""><img src="http://preschoolpartners.com/wp-content/uploads/2014/01/parent_meeting-e1389851693829.jpg" alt="parent meeting" width="100%" /></a>

    it the spinning thing finally stops and it saves... but obviously I don't want to link to nothing.

    I run several wordpress sites and I tried using this same code in a text widget on those and had the exact same problem.

    Any thoughts? suggestions?

    The site I am working on is http://preschoolpartners.com
    I am using WP 3.8.1 and the latest Responsive Pro Theme by CyberChimps.

  2. Chad
    Member
    Posted 1 year ago #

    Ok... so I figured out how to fix it but it still doesn't make since to me.

    So after testing for a while on what worked and what didn't, i figured out that the widget wouldn't save if the last character in the href was a / (slash). "../sign-up" saved but that link would give you a 404.

    So, realizing that for some reason the widget wouldn't save with the last character being a /, I figured I would try the short code link and VoilĂ ! it worked.

    So here is the code that worked:

    <a href="http://preschoolpartners.com/?p=325"><img src="http://preschoolpartners.com/wp-content/uploads/2014/01/parent_meeting-e1389851693829.jpg" alt="parent meeting" width="100%" /></a>

    I'm still curious as to why the Text Widget wouldn't accept (save) the code I originally input into it.

    Anyone have any thoughts?

Topic Closed

This topic has been closed to new replies.

About this Topic