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

How to Custom Pagination For Custom Post in WordPress?

  There are very simple steps for Pagination for any type of Post in WordPress by Shortcode with Ajax.  Write this below code in you active WordPress theme’s funcntion.php file. ie: wp-contentthemestwentytwentyfunctions.php  Put this shortcode […]

Read More