Purpose
The Code Snippets plugin provides a way to add functionality to our site by using PHP, JavaScript, CSS, and/or HTML.
It provides a safe way to add code so that it doesn’t bring the site down, which could happen if a PHP error is introduced in the functions.php.
If the plugin detects any errors in the code snippet, you will not be able to Activate it.
If there are other errors that are not detected by the plugin, you can manually deactivate the snippet.
This plugin has been used to create several plugins used in various places in the site. Eventually, many of these plugins will be converted to standard installable plugins. Essentially, the Code Snippets has been used as a temporary place to demonstrate the functionality as proof of concept.
To explain each snippet’s behavior and purpose, a README was added to each.
- hug-admin-column-helper
- hug-admin-order-and-styles
- hug-always-list-active-snippets
- hug-amortization-schedule
- hug-back-to-top
- hug-blog-series-navigation
- hug-body-taxonomy-classes
- hug-contact-form-expander
- hug-cover-block-full-link
- hug-cover-block-media-url
- hug-datepicker-banner-effects
- hug-external-link-handler
- hug-flip-image-stuff
- hug-google-business-hours
- hug-google-maps-api
- hug-google-maps-ui
- hug-gsap-value-animations
- hug-home-reveal-logic
- hug-internal-header-logic
- hug-media-carousel-js
- hug-media-carousel-php
- hug-scroll-reveal-observer
- hug-staff-page-flips
- hug-team-directory
- hug-team-flip-cards
