This file contains hidden or 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
| .imagefloat { | |
| animation: float 3.5s ease-in-out infinite; | |
| } | |
| @keyframes float { | |
| 0% { | |
| transform: translate(0, 0); | |
| } | |
| 50% { | |
| transform: translate(0, -10px); |
This file contains hidden or 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
| Use the WP-CLI to delete post revisions | |
| wp post delete $(wp post list --post_type='revision' --format=ids) |
This file contains hidden or 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 | |
| // Remove unnecessary menu items from the WordPress Admin Bar | |
| function remove_admin_bar_items() { | |
| global $wp_admin_bar; | |
| $wp_admin_bar->remove_menu('comments'); | |
| $wp_admin_bar->remove_menu('new-content'); | |
| $wp_admin_bar->remove_menu('wp-logo'); | |
| } | |
| add_action( 'wp_before_admin_bar_render', 'remove_admin_bar_items' ); |
This file contains hidden or 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
| /* Original article at: https://elementor.com/blog/christmas-snow-effect/ */ | |
| .snow-bg { | |
| position: relative; | |
| } | |
| .snow-bg:after { | |
| content: ''; | |
| display: block; | |
| position: absolute; |
This file contains hidden or 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 | |
| // Change multiple placeholder titles with this switch statement. Add more as needed. | |
| function fjwp_change_title( $title_placeholder) { | |
| $screen = get_current_screen(); | |
| switch ($title_placeholder) { | |
| case ( $screen->post_type == 'staff' ): |