Code Snippets by Gaurav Tiwari

Explore my curated collection of code snippets, hacks, plugins, themes, and tools. Perfect for developers and designers seeking to elevate their websites, my code snippets are tailored to boost functionality, design, and user experience in projects related to PHP, JS, CSS, .NET, Python, Node etc.

Share on
  1. Add Minimalistic Cookie Notice On WordPress Websites
    Updated on February 23, 2024
  2. How to Remove class="wp-block-heading" from Heading tags?
    Updated on February 23, 2024
  3. Online Product Review Schema Generator
    Updated on May 29, 2023
  4. Easy Python Program Examples for Beginners 
    Updated on December 24, 2022
  5. Is My Site Down or Not?
    Updated on December 29, 2021
  6. Free Domain Lookup Tool
    Updated on May 23, 2021
  7. Python Program to solve Quadratic Equation
    Updated on January 8, 2022
  8. Python Program to Calculate the Area of a Triangle
    Updated on January 8, 2022
  9. Arithmatic operations in Python
    Updated on January 8, 2022
  10. Python program to print "Hello World"
    Updated on January 8, 2022
  11. How to Install Python?
    Updated on January 8, 2022
  12. Python tutorial - Introduction to Python
    Updated on January 8, 2022
  13. Insert Adsense Ads within WordPress Loops Easily
    Updated on June 10, 2023
  14. ASP.NET MVC Ajax Redirect
    Updated on July 8, 2021
  15. LINQ to SQL: Single Data Context or Multiple Data Contexts?
    Updated on October 28, 2020
  16. Rownum Simulation with MySQL
    Updated on October 28, 2020
  17. Including External JavaScript and CSS Stylesheets in a .NET Page
    Updated on October 28, 2020
  18. ASP.NET MVC Render Partial View to String
    Updated on October 28, 2020
  19. Customize [Read More] or Continue Reading in Genesis Themes using code
    Updated on October 28, 2020
  20. Dynamic Month & Year into Posts (Free WordPress Plugin)
    Updated on January 25, 2024
  21. Remove Links & Other Spam from Comments in WordPress
    Updated on July 8, 2021
  22. One click screenshot of any webpage
    Updated on September 5, 2022
  23. Manually Ping Your Sitemap to Google in 1-Click (Submit Sitemap to Google)
    Updated on February 14, 2024
  24. Show Estimated Reading Time at Post Meta
    Updated on October 28, 2020
  25. Inkscape Symbols Library for Windows
    Updated on January 10, 2022
  26. Make Total WordPress theme more compatible with Gutenberg
    Updated on October 28, 2020
  27. HTML Codes for Mathematical Symbols and Signs
    Updated on March 28, 2023

From Github Gists

  1. Making Marketers Delight (MD) 100% Accessible
  2. Enhance WordPress Blocks with custom styles.
  3. A simple shortcode creator snippet.
  4. Load CSS delayed on button click.
  5. Don’t Make Comment Hyperlinks automatically clickable.
  6. Add Post Thumbnails in WordPress and to the Block Editor/Gutenberg
  7. Load WooCommerce Scripts only When Needed

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.