Code Snippets by Gaurav Tiwari
- Add Minimalistic Cookie Notice On WordPress Websites
Updated on March 19, 2024 - How to Remove class="wp-block-heading" from Heading tags?
Updated on February 23, 2024 - Online Product Review Schema Generator
Updated on May 29, 2023 - Easy Python Program Examples for Beginners
Updated on December 24, 2022 - Is My Site Down or Not?
Updated on December 29, 2021 - Free Domain Lookup Tool
Updated on May 23, 2021 - Python Program to solve Quadratic Equation
Updated on January 8, 2022 - Python Program to Calculate the Area of a Triangle
Updated on January 8, 2022 - Arithmatic operations in Python
Updated on January 8, 2022 - Python program to print "Hello World"
Updated on January 8, 2022 - How to Install Python?
Updated on January 8, 2022 - Python tutorial - Introduction to Python
Updated on July 27, 2024 - Insert Adsense Ads within WordPress Loops Easily
Updated on June 10, 2023 - ASP.NET MVC Ajax Redirect
Updated on July 8, 2021 - LINQ to SQL: Single Data Context or Multiple Data Contexts?
Updated on October 28, 2020 - Rownum Simulation with MySQL
Updated on October 28, 2020 - Including External JavaScript and CSS Stylesheets in a .NET Page
Updated on October 28, 2020 - ASP.NET MVC Render Partial View to String
Updated on October 28, 2020 - Customize [Read More] or Continue Reading in Genesis Themes using code
Updated on October 28, 2020 - Dynamic Month & Year into Posts (Free WordPress Plugin)
Updated on October 20, 2024 - Remove Links & Other Spam from Comments in WordPress
Updated on July 8, 2021 - One click screenshot of any webpage
Updated on June 17, 2024 - Manually Ping Your Sitemap to Google in 1-Click (Submit Sitemap to Google)
Updated on February 14, 2024 - Show Estimated Reading Time at Post Meta
Updated on October 28, 2020 - Inkscape Symbols Library for Windows
Updated on January 10, 2022 - Make Total WordPress theme more compatible with Gutenberg
Updated on October 28, 2020 - HTML Codes for Mathematical Symbols and Signs
Updated on March 28, 2023
From Github Gists
- Completely Disable Comments in WordPress
- CSS Grids
- Important accessibility and functional improvements to https://gauravtiwari.org
- WordPress Customizer is a fantastic tool for modifying your site’s appearance, but it stores CSS inline within the page. This can impact load times, especially on large sites. A better approach is to convert this CSS into an external file, allowing it to be cached and preloaded, improving page performance.
- Add browser like frame to images in Gutenberg/Block Editor. Demo https://gauravtiwari.org/work/
- Stick on Scroll Header
- Add a floating Link/Button to take reader to Rank Math SEO's Table of Contents on the page.
- Summarize WordPress post content using PHP
- My Homepage Hero Design using GenerateBlocks
- Add aria-labels to important HTML tags (works with any theme).
- Fix for Marketers Delight Social Share accessibility
- Add featured image to RSS Feed
- Minimal Google Analytics 4
- Save Gravatars Locally and Display on WordPress Frontend
- Open Source Code for PayPal Fee Calculator https://gauravtiwari.org/apps/paypal-fee-calculator/
- Open source code for Sales Tax Calculator on https://gauravtiwari.org/apps/sales-tax-calculator/
- Save Gravatars Locally and Display on WordPress Frontend
- Add Custom Template Class to Block Editor Wrapper in the Backend with Marketers Delight theme so that you can customize the editor using CSS. I use this on https://gauravtiwari.org
- Edge to Edge alignfull in Default Boxed mode of Marketers Delight
- WP Rocket CSS Safelist
- Support for Post Thumbnails & Custom Thumbnail Sizes in WordPress and Add those sizes to Block Editor/Gutenberg
- Load WooCommerce Scripts only When Needed
- Limit the maximum number of post revisions stored on Database
FAQ
How do I use these Code Snippets?
Depending on the code snippet, the usage can differ. Please refer to the individual article/code snippet/plugin for detailed instructions on how to use these.
Do I need to credit you for the code?
No. You can use these codes in your projects, whether personal or commercial. But it would be very kind of you if you could provide credit. That will encourage me to work more and better.
‘This’ code snippet doesn’t work, what to do?
If something doesn’t work, you can report that to me at gaurav@gauravtiwari.org :) I’ll take a maximum of 12 hours to respond to your email.
How to save these code snippets for later?
You can bookmark the pages or save the URLs to getpocket.com — and visit back later. You can also follow me on Twitter to get regular code updates.