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 | |
/** | |
* WordPress Query Comprehensive Reference | |
* Compiled by luetkemj - luetkemj.com | |
* | |
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters | |
* Source: https://core.trac.wordpress.org/browser/tags/3.9/src/wp-includes/query.php | |
*/ | |
$args = array( |
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
Container for .files. |
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
.icon-bg { | |
width: 32px; /* required for layout, adjust as needed */ | |
a { | |
margin-top: -60%; /* adjust as needed */ | |
overflow: hidden; /* required for replacement */ | |
padding-left: 0; | |
padding-right: 0; | |
position: relative; | |
text-indent: 100%; | |
&:after { |
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
#!/bin/bash | |
sudo chown -R www-data:www-data /var/www/ | |
sudo chmod -R g+w /var/www/ |
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 | |
//* Modify text strings | |
//* Hat-tip: http://speakinginbytes.com/2013/10/gettext-filter-wordpress/ | |
function dw_text_strings( $translated_text, $text, $domain ) { | |
switch ( $translated_text ) { | |
case 'Related Products' : | |
$translated_text = __( 'More T-Shirts', 'woocommerce' ); | |
break; |
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
// if cell to split is C2 | |
=split(proper(C2), " ") |
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 | |
// *copy below this line | |
//* Add top bar to site (loads above header and everything else) | |
add_action( 'genesis_before', 'top_bar' ); | |
function top_bar() { ?> | |
<div id="top-bar-area"> | |
<div class="wrap"> | |
<!-- custom content here --> | |
</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 | |
//* Copy below this line */ | |
add_filter( 'gform_submit_button', 'form_submit_button', 10, 2 ); | |
function form_submit_button($button, $form) { | |
return '<input type="submit" class="button custom-class-here" id="gform_submit_button_' . $form['id'] . '" value="' . $form['button']['text'] . '">'; | |
} |
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 | |
//* don't copy opening php tag above | |
//* Add featured image to top of posts | |
add_action('genesis_before_entry', 'featured_post_image', 8); | |
function featured_post_image() { | |
if (has_post_thumbnail()) : ?> | |
<div class="featured-image"> | |
<?php the_post_thumbnail('post-image'); ?> |
NewerOlder