You were close, it is simply this: <a href="http://site.com/product/product-link#modal">. You can link to any id by appending it to the end ... ... <看更多>
Search
Search
You were close, it is simply this: <a href="http://site.com/product/product-link#modal">. You can link to any id by appending it to the end ... ... <看更多>
Some links on my site take the user to a specific post in context on a category page. On non-WP sites, this is easily accomplished by including #example-div-id ... ... <看更多>
You link to them by putting the ID in the href ... links, and anchors</h2> <div id="nav"> <ul ... ... <看更多>
data-href ... <div id="fb-root"></div> <script async defer ... CORRECT --> <div class="fb-post" data-width="500" data-href="{your-post-url}"> </div> ... ... <看更多>
lenaten changed the title Scroll to div id with <Link ... Maybe we should automatically make scroll={false} when url includes # . ... <看更多>
If you want to add an id to a div , you set the id attribute of the element to a value, ... createElement('script'); script.src = url; document.body. ... <看更多>