On some pages I want to work with anchors
e.g. <a name=“anAnchorName”></a>
and on another page jump to this anchor with a link
<a href=“pageWithAnchor#anAnchorName”>link</a>
For some reason this doesn’t work in the zap theme (tried it in a fresh install) and with different browsers.
The link does nothing (not even link to a 'page not found’).
Any idea how to solve this
© Copyright 2013-2017 DrupalExp - All Rights Reserved
Hello Chris,
Did you try with ID instead of anchort name.
e.g. <div id="anAnchorName"></div>
Hello Cong,
That gave the same result?
Is seems if it is a problem cause by the zap theme.
I tested it with some other themas and the didn't give any problems?
Solved is in the following way
I added a class to the link that jumps to the anchor: e.q. 'anchorName'.
and put the following js-code in custom.js.