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)
1 hour Free Service for WordPress website :)
1 hour Free Service for WordPress website :)
-
Web Design ,Logo Design, graphic design, website design: Web Design : encompasses many different skills and disciplines in the production a...
-
The Wedding is Responsive HTML theme for wedding planner websites. which helps you to build your own site. Wedding Planner theme has ...
-
CSS tricks to show or hide horizontal and vertical scroll bar Sometimes we need to add scroll bar to a div or span whenever ...