This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Allow SVG uploads for administrator users. | |
* | |
* This function modifies the list of allowed mime types for file uploads in WordPress. | |
* Specifically, it enables SVG and SVGZ file uploads for users with the 'administrator' role. | |
* This can enhance flexibility for site customization while maintaining security. | |
* | |
* Gist Keywords: wordpress, file upload, svg, functions, mime, security | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Disables automatic update notification emails in WordPress. | |
* | |
* This code snippet hooks into WordPress auto-update settings to disable | |
* automatic emails for core, plugin, and theme updates. It's particularly | |
* useful for reducing email clutter and is often suitable for a managed | |
* WordPress environment where updates are handled through a central management system. | |
* | |
* Gist Keywords: wordpress, emails, admin, notifications |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Clears the SiteGround cache for a specific page or the entire site. | |
* | |
* This function checks if a valid URL is provided and clears the cache | |
* for that specific page. If the URL is invalid or not provided, it clears | |
* the cache for the entire site. It relies on the 'sg_cachepress_purge_cache' function | |
* provided by SiteGround's caching functionality. | |
* | |
* Gist Keywords: wordpress, cache, performance, siteground |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Typographic Scale and Font Size Variables | |
* | |
* This CSS defines a series of font scales and size variables for responsive typography. | |
* The scales are based on musical and mathematical ratios, with the default set to the Golden Ratio. | |
* | |
* Gist Keywords: typography, responsive, responsiveness, css, variables, custom properties | |
* Author: Knol Aust | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Adds the current page or post slug as a class to the body tag in WordPress. | |
* | |
* This function is useful for applying page-specific CSS styles. It checks if | |
* the current view is a singular page and then adds the post's slug as a class | |
* to the body tag, making it easier to target with CSS. | |
* | |
* Gist Keywords: wordpress, theme, slug, css, body class | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Begin SiteGround Anti-Cache Configuration for Directory | |
# Author: Knol Aust | |
# Gist Keywords: siteground, caching, htaccess, performance | |
# This configuration is intended for use within a specific directory on a SiteGround-hosted website. | |
# Placing this .htaccess file in a directory will instruct SiteGround's caching mechanisms | |
# not to cache any content from this directory. This can be particularly useful for directories | |
# containing dynamic or frequently updated content, where caching might lead to stale content being served. | |
<IfModule mod_headers.c> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Enqueue Styles and Scripts for My Theme | |
* | |
* This function enqueues styles and scripts for the custom theme. | |
* It includes versioning based on the file's last modification time | |
* to prevent caching and ensures proper dependencies. | |
* | |
* Gist Keywords: wordpress, theme, javascript, styles, enqueue | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Custom SCSS Variables and Class Generators | |
* | |
* This SCSS file defines custom variables for colors and generates classes | |
* for applying these colors to text, backgrounds, and borders. Additionally, | |
* it generates classes for font sizes based on predefined sizes in 'rem' units. | |
* | |
* Gist Keywords: scss, sass, variables, colors, font sizes, gutenberg, editor, styles | |
* | |
* @author Knol Aust |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"ms_counties": [ | |
"Adams", | |
"Alcorn", | |
"Amite", | |
"Attala", | |
"Benton", | |
"Bolivar", | |
"Calhoun", | |
"Carroll", |