{"id":4759936,"date":"2014-03-31T09:51:57","date_gmt":"2014-03-31T09:51:57","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/feature-request-adding-a-common-class-to-anchor-headings\/"},"modified":"2016-08-21T18:50:56","modified_gmt":"2016-08-21T18:50:56","slug":"feature-request-adding-a-common-class-to-anchor-headings","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/feature-request-adding-a-common-class-to-anchor-headings\/","title":{"rendered":"Feature Request: Adding a common class to anchor headings"},"content":{"rendered":"<p>Hello,<\/p>\n<p>Firstly, congrats on creating and supporting such an excellent plugin. I was wondering whether I might be able to ask for a small feature request for future releases?<\/p>\n<p>Would it be possible to add a common class to the anchor tags added just before each heading?<\/p>\n<p>The reason I ask is that I have a floating sharebar menu that is fixed to the top of the page upon scrolling and it would be good if I could create an offset (say -50px) that would allow the heading tags to show correctly (ie not behind the floating sharbar) when links to anchor tags are clicked.<\/p>\n<p>Without a common class element being applied to all anchor links it&#8217;s difficult to do this.<\/p>\n<p>I think this would be an excellent feature and one that would be useful to many people.<\/p>\n<p>Thanks,<br \/>\nPaul<\/p>\n<p>https:\/\/wordpress.org\/plugins\/better-anchor-links\/<\/p>\n","protected":false},"template":"","class_list":["post-4759936","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/4759936","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/4759936\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=4759936"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}