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
/* Convert the standard WooCommerce products list into a modern responsive grid. */ | |
ul.products { | |
--grid-gap: 32px; | |
--auto-grid-min-size: 200px; | |
grid-template-columns: repeat(auto-fill, minmax(var(--auto-grid-min-size), 1fr)); | |
grid-gap: var(--grid-gap); | |
display: grid; | |
} | |
ul.products:before{ | |
content:unset!important; |
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 | |
/** | |
* WARNING! THIS SNIPPET MAY BE OUTDATED. | |
* The latest version of this snippet can be found in the Gravity Wiz Snippet Library: | |
* https://github.com/gravitywiz/snippet-library/blob/master/gravity-forms/gw-user-registration-skip-registration-for-existing-email.php | |
*/ | |
/** | |
* Gravity Wiz // Gravity Forms // User Registration // Skip Registration if Email Exists | |
* | |
* If submitted email is already registered, skip registration. |
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 | |
/** | |
* Blog Intro | |
* | |
*/ | |
function be_blog_intro() { | |
$content = get_post( get_option( 'page_for_posts' ) )->post_content; | |
if( $content ) | |
echo '<div class="blog-intro">' . wpautop( $content ) . '</div>'; |
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 | |
/* Template Name: Genesis and SearchWP integration with pagination */ | |
function prefix_searchwp_form( $query ) { | |
echo '<form class="searchwp-form" action="" method="get">'; | |
echo '<input type="text" id="searchwpquery" name="searchwpquery" value="' . esc_attr( $query ) . '" />'; | |
echo '<button type="submit">' . __( 'Search', 'text-domain' ) . '</button>'; | |
echo '</form>'; | |
} |
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 | |
add_action( 'tgmsp_before_slider_output', 'tgm_custom_slider_theme' ); | |
function tgm_custom_slider_of_madness( $id ) { | |
// If not the proper slider ID, do nothing. Change to match your slider ID. | |
if ( '324' !== $id ) return; | |
// Dequeue the default styles. | |
wp_dequeue_style( 'soliloquy-style' ); | |
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 | |
// Do not copy opening php tag above | |
add_action( 'wp_enqueue_scripts', 'wsm_custom_stylesheet', 20 ); | |
function wsm_custom_stylesheet() { | |
wp_enqueue_style( 'custom-style', get_stylesheet_directory_uri() . '/custom.css' ); | |
} |
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 | |
function who_killed_me( $handler ){ | |
print_r( wp_debug_backtrace_summary() ); | |
return $handler; | |
} | |
add_filter( 'wp_die_handler', 'who_killed_me' ); | |
?> |
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 | |
// alter metabox titles | |
add_filter('gettext', 'wps_translation_mangler', 10, 4); | |
function wps_translation_mangler($translation, $text, $domain) { | |
global $post; | |
if (!empty($post)) { | |
$translations = &get_translations_for_domain( $domain); | |
if($post->post_type == 'ufcf_person'){ | |
if ( $text == 'Set featured image') { |
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 | |
/* | |
Plugin Name: Reminder Emails | |
Plugin URI: http://www.christopherguitar.net/ | |
Description: Sends a reminder email if you haven't posted in seven days. | |
Version: n/a | |
Author: Christopher Davis | |
Author URI: http://www.christopherguitar.net | |
License: GPL2, Creative Commons | |
*/ |
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
# canonical redirect to no www | |
RewriteEngine On | |
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC] | |
RewriteRule ^(.*)$ http://%1/$1 [R=301,L] | |
# protect wp-config at all cost | |
<files wp-config.php> | |
Order deny,allow | |
deny from all | |
</files> |
NewerOlder