Open post

Replace Yoast With A Simple Code Snippet

SEO Yoast has been a cornerstone for SEO professionals worldwide since its introduction, providing robust features to optimize websites for search engines. However, the increasing nags and upsell prompts for the pro version have bloated the core plugin, prompting many users to seek alternatives that offer essential SEO speed functionalities without the extraneous overheads of features never used. This script […]

Read OnMore Tag
Open post

Free Schema Ready Accordion For Code Snippets

This code snippet creates an accordion menu on WordPress using the “Code Snippets” plugin, enabling users to embed collapsible sections within their content. When the shortcode ( accordion ) is used, it triggers the custom_accordion_shortcode function, which enqueues the jQuery UI Accordion script and applies custom styles to the accordion elements. The styles define the visual appearance, such as background […]

Read OnMore Tag
Open post

Kill WordPress Unused CSS and Compress HTML With Code Snippets

This code snippet is designed to optimize a WordPress site’s performance by compressing HTML output, removing unnecessary assets, and improving loading efficiency. It begins by compressing the HTML output, removing extra spaces and newlines to reduce the overall size of the HTML sent to the browser. This is achieved using the ob_start function, which starts output buffering and applies a […]

Read OnMore Tag
Open post

Allow SVG File Uploads WordPress Using Code Snippets

This code snippet enhances WordPress functionality to support SVG file uploads, handle potential errors during the upload process, and ensure that SVG files have default dimensions in the media library. The custom_mime_types function adds SVG to the list of allowed MIME types, enabling users to upload SVG files by modifying the MIME types array to include ‘svg’ => ‘image/svg+xml’. The […]

Read OnMore Tag
Open post

Generate an HTML Sitemap With Code Snippets

HTML sitemaps significantly enhance user experience by providing a clear, organized overview of a website’s content. It serves as a roadmap, making it easy for visitors to find specific pages or sections they’re looking for. This is especially beneficial for large or complex websites, where navigation menus might not be sufficient. By improving navigation and reducing the number of clicks […]

Read OnMore Tag
Open post

The Original Code Snippets Plugin for WordPress

As a long-time fan and extensive user of the Original Code Snippets Plugin for WordPress, I am thrilled to share my experience and insights. This plugin has been a game-changer for many of my sites, proving that you can significantly unbloat your WordPress instance by replacing most of your plugins with one powerful tool. Why Choose the Code Snippets Plugin? […]

Read OnMore Tag
Scroll to top