StackOverflow Answers: https://stackoverflow.com/questions/1...
Wordpress strips empty "a" tags and I looked at modifying functions.php, using Javascript, and installing TinyMCE Advanced to see if their "allow tags" feature would work.
Admittedly, I didn't try too hard with Javascript solutions (because it's harder in Wordpress than CSS and HTML) so there are probably plenty of Javascript solutions that would work for offsetting anchor clicks.
Adding span tags seemed like the easiest thing to do since Wordpress didn't strip empty span tags and it could be added directly in the element I needed the offset to happen on.
Watch video Offset HTML Anchor to Jump Down the Page Below the Site's Header Nav in Wordpress online, duration hours minute second in high quality that is uploaded to the channel Jarad Python 16 May 2019. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 2,653 times and liked it 41 visitors.