• Resolved andynick

    (@andynick)


    The Custom HTML Widget won’t accept my HTML. It comes up with an error message telling me there’s a duplicate <title> tag, but there isn’t. Even if I remove the (link) title completely, it still tells me there’s a duplicate, and won’t allow me to save. The only way I could get round it was to use the Arbitrary text Widget.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter andynick

    (@andynick)

    <h3 class="al-c"><a title="Watch a full sheepdog training tutorial, completely free of charge" href="https://sheepdog-training.com/free-herding-sheepdog-training-video/">Watch a Complete Tutorial <span class="rd b ts">FREE</span></a> &nbsp; or &nbsp; <a title="Signup for full membership" href="https://sheepdog-training.com/signup-for-our-sheepdog-training-tutorials/" title="Signup for our Sheepdog Training Tutorials">Become a Full Member <b>NOW</b></a></h3>
    I included a link to a screen grab in my post, but it was deleted (pity).

    • This reply was modified 6 years, 10 months ago by andynick.
    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Can you remove the title attribute? It’s not necessary and you’re duplicating content that is already in the link.

    Thread Starter andynick

    (@andynick)

    Thanks for your interest Andrew.
    In my first post, you’ll see that I’ve already tried removing the title, and it made no difference.
    If my HTML is valid, I shouldn’t <b>have</b> to remove the title attribute. I should be able to paste it into the widget and save it.
    Deleting the title would be ‘papering over the cracks’.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    I think you’re facing 2 separate problems:

    1. Your HTML is not updating after deleting title attributes
    2. You have duplicate title attributes (which you do):
      
      <a 
          title="... One of the duplicates ..." 
          href="..." 
          title="...The other duplicate ..."
      > 
      
    • This reply was modified 6 years, 10 months ago by Andrew Nevins.
    Thread Starter andynick

    (@andynick)

    Thanks. At first I couldn’t find the offending code, but I finally located it. There was, indeed a duplicate title tag.

    • This reply was modified 6 years, 10 months ago by andynick. Reason: To correct my mistake in the post
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Over-Zealous Custom HTML Widget’ is closed to new replies.