Fixed Menu on scroll You need to add jQuery & CSS to your website first. <script src=”https://code.jquery.com/jquery-3.3.1.js“></script> Then add the following code to toggle “navscrl”… Read More →
Media Queries: How to target desktop, tablet, and mobile?
January 7, 2022
Media queries are used in CSS to conditionally apply styles based on the size and characteristics of a device’s screen. They allow you to create… Read More →
use of the @ symbol in PHP?
January 5, 2022
The “@” symbol is a error control operator in PHP that allows you to suppress error messages generated by the PHP code. This can be… Read More →
A Complete Guide to Deleting Files in Node.js: fs.unlink(), fs.rm(), and Best Practices
January 5, 2022
In the world of Node.js development, file operations are a fundamental task, and knowing how to reliably remove files is a cornerstone of building robust… Read More →
Simple PHP Pagination script
January 5, 2022
Here is a Simple PHP Pagination script try { // Find out how many items are in the table $total = $dbh->query(‘ SELECT COUNT(*) FROM… Read More →
How to Convert or Change Custom Post Types in WordPress
January 4, 2022
Convert or Change Custom Post Types in WordPress Type and search the following plugin and install it into your WordPress website – Post Type Switcher… Read More →
Delete All WooCommerce Products With MySQL
January 3, 2022
Use the following query to Delete All WooCommerce Products DELETE relations.*, taxes.*, terms.* FROM wp_term_relationships AS relations INNER JOIN wp_term_taxonomy AS taxes ON relations.term_taxonomy_id=taxes.term_taxonomy_id INNER… Read More →
Generating PDF files with JavaScript
December 5, 2021
Generate PDF with JavaScript // Default export is a5 paper, portrait, using milimeters for units var doc = new jsPDF() doc.text(‘Hello world!’, 10, 10) doc.save(‘a5.pdf’)… Read More →
One of the most common frustrations for Magento 2 store owners is when a customer clicks a color swatch, but the main product image remains… Read More →
Including CSS and JavaScript in WordPress – The Right Way
December 1, 2021
In WordPress, there are a few different ways to include CSS and JavaScript in your site. Here are some options: Enqueueing Scripts and Stylesheets: This… Read More →