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.
Смотрите видео Offset HTML Anchor to Jump Down the Page Below the Site's Header Nav in Wordpress онлайн, длительностью часов минут секунд в хорошем качестве, которое загружено на канал Jarad Python 16 Май 2019. Делитесь ссылкой на видео в социальных сетях, чтобы ваши подписчики и друзья так же посмотрели это видео. Данный видеоклип посмотрели 2,653 раз и оно понравилось 41 посетителям.