I have a link on the home page that I want to locate to a certain module on another page. I can't just link to the page the module is on, because on a phone, the module is way down the page.
I've read that named anchors are no longer considered valid in modern HTML. Instead, you are supposed to use an HTML id, i.e.
Then you can supposedly locate to it by
So on my "Contacts" page, I have a Static PHP Module with some content in it. Inspecting the elements, I see that this widget has the HTML id="widget_177".
So, on the link on the other page, I enter
However, when I try this, it indeed links and jumps to the correct location, but the widget is completely gone (disappeared, hidden)!
Is there some different/better way to do this? Thanks.
I've read that named anchors are no longer considered valid in modern HTML. Instead, you are supposed to use an HTML id, i.e.
HTML Code:
<div id="foo1">Some content</div>
HTML Code:
<a href="contacts#foo1">link</a>
So, on the link on the other page, I enter
HTML Code:
<a href="contacts#widget_177">link</a>
Is there some different/better way to do this? Thanks.
Comment