Use a content action button to link to the Comments h2 #7050
-
I am adding a comments system to our docs and want to use a content action button that will redirect the user to the Comments h2 at the bottom of the page. This work is similar to #6850 (comment), but I'm not sure how to adapt it since I'm not linking a repository. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 10 replies
-
This can be achieve with some quick customizations
<a href="#__comments">...</a>
<!-- ... rest of actions.html -->
<h2 id="__comments">Comments</h2>
<!-- Comment system integration --> |
Beta Was this translation helpful? Give feedback.
-
@squidfunk So I've been able to implement the I know the solution is to add some javascript to my extra.js, but I'm struggling to figure out how to write it. 😞 I feel like the solution will be similar to #6849 (reply in thread), but less intense. Thank you in advance for your help!! |
Beta Was this translation helpful? Give feedback.
This can be achieve with some quick customizations☺️ You could override the
actions.html
partial, which contains the buttons, and add a link to anh2
that you use in thecomments.html
partial. Maybe something like:actions.html
comments.html