Join GitHub today
GitHub is where the world builds software
Don't Display Footnote Number on Excerpt #125
Hmm, taking another look at this now. This is going to be a bit tricky.
Currently, I search for and strip out any
I'm wondering if I should even be worrying about this in the core theme. This seems like something a site owner should specify on their own in a child theme, using CSS, since each site owner may implement footnotes differently.
For example, there are WordPress plugins for adding footnotes to your posts and I have no way of detecting how those are implemented and therefore would not be able to automatically remove them.
OK, problem solved. For Quote and Aside post formats, the theme now strips out any anchor tags and any footnotes (
It's just not possible to show an anchor tag inside the Quote or Aside content on the Blog, Archive, or Search pages, because on those pages the Quote and Aside content is linked to the permalink for the Quote or Aside, and nesting anchors inside anchors doesn't work (e.g.,