When we visit this page with an anchor link the bottom nav overlaps the slider. When we visit it without an anchor it does not.
Thank you
Hey finchkelsey,
Thank you for the link to your site, I believe that this code at the end of your child theme functions.php file in Appearance ▸ Editor will help:
function custom_tab_section_script() { ?>
<script>
window.onload = function() {
if (window.location.hash) {
var hash = window.location.hash.substring(1);
var targetElement = document.getElementById(hash);
if (targetElement) {
setTimeout(function() {
var offset = targetElement.offsetTop;
window.scrollTo({
top: offset,
behavior: "smooth"
});
}, 1000);
}
}
};
</script>
<?php
}
add_action('wp_footer', 'custom_tab_section_script', 99);
but I can’t fully test without admin access, please give this a try and clear your browser cache.
Best regards,
Mike