I’ve got a strange issue in that anchor links on the current page work fine, but that the exact same link doesn’t work if clicked from another page.
If you go here, and click on any one of the items in the table, It’ll take you to the correct area of the page, for instance, searching and clicking on corks takes me to this URL ( http://www.cswd.net/recycling/a-z/#corks ) but if I copy and paste that link into a browser, it will jump to the cork section and then immediately jump down to the bottom of the page.
I don’t see any conflicting javascript, the site is using thesis (I didn’t have any hand in the design, coding or anything, just doing maintenance), and I’m not getting any errors in the console of firebug.
I’ve tried removing the trailing ‘/’ on permalinks (as suggested on the wordpress forums) but that didn’t work – same issue.
I’m personally stumped. Any ideas?
Just a tip: the structure of the headings with anchor tags is the following on that site:
<h2><a id="something" name="something"></a>SOMETHING</h2><p>Description of that thing</p>
However, the paragraph of the Corks section also contains the anchor tag of the following Wood section:
<a name="wood"></a>
. Then the paragraph is closed and comes the<h2 id="wood">WOOD (clean, untreated)</h2>
It also causes the next section (#pressure) jumping to the bottom.I think moving the wood anchor tag to the Wood h2 would solve the problem:
<h2><a id="wood" name="wood"></a>WOOD (clean, untreated)</h2><p>text comes here</p>