Skip to content

Instantly share code, notes, and snippets.

View keeneyemedia's full-sized avatar

Keenan Flogerzi keeneyemedia

View GitHub Profile
@keeneyemedia
keeneyemedia / disable-animations.css
Created January 18, 2019 15:43
[Disable all CSS animations] #css
@media (prefers-reduced-motion: reduce) {
* {
animation: none !important;
transition: none !important;
}
}
@keeneyemedia
keeneyemedia / bitbucket-pipelines.yml
Created January 10, 2018 21:27
Sample bitbucket-pipelines.yml for WPengine GIT Push
pipelines:
branches:
master:
- step:
script:
- git push git@git.wpengine.com:production/YOUR_INSTALL_NAME.git master
- echo "Completed"
staging:
- step:
script:
@keeneyemedia
keeneyemedia / Admin-message.php
Last active September 19, 2017 19:17
[Add admin messages to dashboard] Yellow = 'notice-warning'; Green = 'updated'; Red = 'error' #wordpress #tutorials #dashboard
function kem_theme_admin_notice(){
global $pagenow;
if ( $pagenow == 'themes.php' ) {
echo '<div class="notice notice-warning">
<p><strong>Before updating the "Spacing" theme, please note the following files have been modified:</strong></p>
<ul>
<li>-footer.php</li>
<li>-header.php (modified by the Wordpress SEO plugin)</li>
</ul>
</div>';
@keeneyemedia
keeneyemedia / ACF-random-gallery-step-4.php
Last active September 19, 2017 19:18
[ACF Random Gallery Post - Step 4] #tutorials #acf_random_gallery
@keeneyemedia
keeneyemedia / ACF-random-gallery-step-3.php
Last active September 19, 2017 19:19
[ACF Random Gallery Post - Step 3] #tutorials #acf_random_gallery
@keeneyemedia
keeneyemedia / ACF-random-gallery-step-2.php
Last active September 19, 2017 19:19
[ACF Random Gallery Post - Step 2] #tutorials #acf_random_gallery
@keeneyemedia
keeneyemedia / ACF-random-gallery-step-1.php
Last active September 19, 2017 19:19
[ACF Random Gallery Post - Step 1] #tutorials #acf_random_gallery