Add and remove a class on click using jQuery

  <script src=”https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js”></script> <script> jQuery(document).ready(function(){ jQuery(‘#btnSubmit’).on(‘click’, function() { jQuery(this).addClass(‘toggle’).removeClass(‘codepen’);    }); }); </script> According To Question: #jQuery add remove class onclick codepen #Add Class jQuery […]

Read More

WordPress Post Views Count Without Plugin

 Step1″Add this code in current WordPress active theme in function.php file <?php function get_PostViews($postID){    $count_key = ‘post_views_count’;    $post_count = get_post_meta($postID, $count_key, true);    […]

Read More