Create a Personal Website in Hostinger and Get a Mega Discount Are you a new user with a small or starting business looking to create […]
Marketplace not showing any extensions in OpenCart
Some times you can’t showing any extensions in OpenCart There are simple step for fixe the issue of extensions in OpenCart Version 3.0.3.8 First step […]
How To Install Laravel 8 On Windows
Step 1 – Prerequisite to Install Composer On Windows Step 2 – Open Command Prompt (Windows key + R Then write cmd and Press Enter […]
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 […]
Change Div Order In Mobile View By jQuery
Web View […]
Perfect Ranking With Ties Using By PHP Array
<?php #Ex: Short Set Ranking Hosting Provider Founded By Year // INPUT $Hosting_Years = array( ‘Bluehost’ => 2003, ‘Dreamhost’ => […]
Formatting A Number With Leading Zeros In PHP
<?php #Ex: Make 4 Digit Integer Or Zerofill An Integer In PHP // INPUT $start_number = 1; $end_number = 100; for($i=$start_number; $i <= $end_number; $i++ […]
How Can I Remove A Specific Item From An Array by jQuery?
//INPUT var array = [2020, 2021, 2022, 2023]; console.log(array); var index = array.indexOf(2020); if (index > -1) { array.splice(index, 1); } // OUTPUT : […]
Create A Folder If It Doesn’t Already Exist In WordPress Or PHP
<?php if (!file_exists(‘home/public_html/example.com/wp-content/uploads/blog’)) { mkdir(‘home/public_html/example.com/wp-content/uploads/blog’, 0777, true); } ?> According To Question: #mkdir php #check if directory exists php #how to create directory […]
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); […]