Showing posts with label anchor. Show all posts
Showing posts with label anchor. Show all posts
Thursday, September 14, 2023
How to add additional class to WordPress navbar anchors
function add_additional_class_on_a($classes, $item, $args)
Wednesday, March 29, 2023
jQuery to smoothly scroll page
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script>$(document).ready(function(){
$("a").on('click', function(event) {
if (this.hash !== "") {
event.preventDefault();
var hash = this.hash;
$('html, body').animate({
scrollTop: $(hash).offset().top
}, 800, function(){
window.location.hash = hash;
});
}
});
});
</script>
</script>
Subscribe to:
Posts (Atom)
For Professional website contact WEB CODE ADDICT
View this post on Instagram A post shared by WebCodeAddict (@webcodeaddicted)
-
Web Design ,Logo Design, graphic design, website design: Web Design : encompasses many different skills and disciplines in the production a...
-
<!doctype HTML> <html> <head> <meta content="text/html; charset=UTF-8" /> <title>Web Code Addict Ac...
-
In WordPress, "plugins" are pieces of software that can be added to your website to extend its functionality and add new feature...