attempted tweak gone wrong
-
Using the Validator, I tried a small tweak for a problem I was having, but the result was worse than the original problem.
The problem: although the page looked okay on IE7, the ‘Home’ link at the bottom of the page appeared top right at the head of the second column (where Archives and Categories usually appear) in other browsers like Firefox.
The Validator error report was:
Line 138, Column 31: document type does not allow element “a” here
<a href="https://doborough.com">Home</a>
The highlighted error was the > before ‘Home’. The comment was: “The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements — such as a “style” element in the “body” section instead of inside “head” — or two elements that overlap (which is not allowed).”
I wanted to see what would happen if I deleted the > and the result was a page that had replaced the ‘Home’ link with WordPress elements I didn’t want and which I had managed to get rid of – take a look:
https://doborough.com/?page_id=28
I’m baffled. Why didn’t the page revert to the way it was before the Dreadful Tweak?
- The topic ‘attempted tweak gone wrong’ is closed to new replies.