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 | |
//* IE8 condital stylesheet | |
add_action( 'wp_enqueue_scripts', 'print_my_styles' ); | |
function print_my_styles() { | |
global $wp_styles; | |
wp_enqueue_style( 'ie8', get_stylesheet_directory_uri() . '/ie8.css' ); | |
$wp_styles->add_data( 'ie8', 'conditional', 'lt IE 9' ); | |
} |
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 | |
add_action( 'genesis_loop', 'be_custom_loop' ); | |
remove_action( 'genesis_loop', 'genesis_do_loop' ); | |
function be_custom_loop() { | |
global $post; | |
// arguments, adjust as needed | |
$args = array( |
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 | |
//* Get date from a WordPress Custom Field and alter its format. | |
$display_date = date('F d, Y', strtotime(get_post_meta($post->ID, "event_start_date", true))); | |
echo $display_date; |
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 the default WordPress login logo | |
function my_login_logo() { ?> | |
<style type="text/css"> | |
body.login div#login h1 a { | |
background-image: url(<?php echo get_bloginfo( 'template_directory' ); ?>/images/site-login-logo.png); | |
padding-bottom: 30px; | |
} | |
</style> |
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 wp_link_pages(array( 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentythirteen' ) . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>', 'next_or_number' => 'next_and_number', 'separator' => '', 'nextpagelink' => __( '»' ), 'previouspagelink' => __( '«' ), 'pagelink' => '%')); ?> |
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 | |
$today = date('Ymd', strtotime('-1 day')); | |
// WP_Query arguments | |
$args = array ( | |
'post_type' => 'construction_bids', | |
'posts_per_page' => -1, | |
'meta_query' => array( | |
array( | |
'key' => 'bid_deadline', | |
'value' => $today, |
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
<a href="#slide-rio-medley" data-target="slider"></a> | |
<div id="slider"></div> |
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 | |
// Add featured image to single posts. | |
add_action ( 'genesis_entry_content', 'aafcm_show_featured_image_single', 1 ); | |
function aafcm_show_featured_image_single() { | |
global $post; | |
if ( is_page() ) | |
return; // Make pages act normal | |
//setup thumbnail image args to be used with genesis_get_image(); |
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 | |
add_filter( 'wp_nav_menu_items', 'add_logout_link', 10, 2); | |
/** | |
* Add a login link to the members navigation | |
*/ | |
function add_logout_link( $items, $args ) | |
{ | |
if($args->theme_location == 'site_navigation') |
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 | |
/** | |
* Enabling automatic updates. | |
*/ | |
define('FTP_USER', 'username'); | |
define('FTP_PASS', 'password'); | |
define('FTP_HOST', 'localhost'); |