Skip to content

Instantly share code, notes, and snippets.

Avatar

Keenan Flogerzi keeneyemedia

View GitHub Profile
@keeneyemedia
keeneyemedia / disable-animations.css
Created Jan 18, 2019
[Disable all CSS animations] #css
View disable-animations.css
@media (prefers-reduced-motion: reduce) {
* {
animation: none !important;
transition: none !important;
}
}
@keeneyemedia
keeneyemedia / bitbucket-pipelines.yml
Created Jan 10, 2018
Sample bitbucket-pipelines.yml for WPengine GIT Push
View bitbucket-pipelines.yml
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 Sep 19, 2017
[Add admin messages to dashboard] Yellow = 'notice-warning'; Green = 'updated'; Red = 'error' #wordpress #tutorials #dashboard
View Admin-message.php
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 Sep 19, 2017
[ACF Random Gallery Post - Step 4] #tutorials #acf_random_gallery
View ACF-random-gallery-step-4.php
@keeneyemedia
keeneyemedia / ACF-random-gallery-step-3.php
Last active Sep 19, 2017
[ACF Random Gallery Post - Step 3] #tutorials #acf_random_gallery
View ACF-random-gallery-step-3.php
@keeneyemedia
keeneyemedia / ACF-random-gallery-step-2.php
Last active Sep 19, 2017
[ACF Random Gallery Post - Step 2] #tutorials #acf_random_gallery
View ACF-random-gallery-step-2.php
@keeneyemedia
keeneyemedia / ACF-random-gallery-step-1.php
Last active Sep 19, 2017
[ACF Random Gallery Post - Step 1] #tutorials #acf_random_gallery
View ACF-random-gallery-step-1.php