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
ul.disc-aligned { | |
display: table; | |
padding-left:20px; | |
} | |
ul.disc-aligned > li { | |
margin-bottom: 5px; | |
} | |
ul.disc-aligned > li::before { |
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 if( have_rows('content_blocks') ): ?> | |
<?php while ( have_rows('content_blocks') ) : the_row(); ?> | |
<h2><?php the_sub_field('content_block_title'); ?></h2> | |
<p><?php the_sub_field('content_block_content'); ?></p> | |
<?php endwhile; ?> | |
<?php endif; ?> |
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
jQuery( document ).ready(function( $ ) { | |
// Code that uses jQuery's $ can follow here. | |
}); |
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 | |
$args = array( | |
'post_type' => 'event', | |
'orderby' => 'event_date menu_order', | |
'order' => ASC, | |
'posts_per_page' => -1, | |
'meta_key' => 'event_date' | |
); | |
$query = new WP_Query( $args ); | |
?> |
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
<title> | |
<?php | |
if (function_exists('is_tag') && is_tag()) { echo 'Tag Archive for "'.$tag.'" - '; } | |
elseif (is_archive()) { wp_title(''); echo ' Archive - '; } | |
elseif (is_front_page()) { wp_title(''); } | |
elseif (is_search()) { echo 'Search for "'.wp_specialchars($s).'" - '; } | |
elseif (!(is_404()) && (is_single()) || (is_page())) { wp_title(''); echo ' - '; } | |
elseif (is_404()) { echo 'Not Found - '; } bloginfo('name'); | |
?> | |
</title> |
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
.blog-body { | |
border-right: 2px dotted #DCDCDC; | |
padding-right: 24px; | |
} | |
#bread { | |
display: none; | |
} | |
.blog-main { |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
ul { | |
list-style: none; | |
padding:0; | |
margin:0; | |
} | |
li { | |
padding-left: 1em; | |
text-indent: -.7em; | |
} |
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
<ol class="carousel-indicators slideNav"> | |
<?php if( have_rows('slide') ): ?> | |
<? $i = 0; ?> | |
<?php while ( have_rows('slide') ) : the_row(); ?> | |
<li data-target="#carousel-example-generic" data-slide-to="<?php echo $i; ?>" class="<? if($i === 0): ?>active<? endif; ?>"></li> | |
<? $i++; ?> | |
<?php endwhile; ?> | |
<?php endif; ?> | |
</ol> |
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 (! function_exists('slug_scripts_masonry') ) : | |
if ( ! is_admin() ) : | |
function slug_scripts_masonry() { | |
wp_enqueue_script('masonry'); | |
wp_enqueue_style('masonry', get_template_directory_uri().'/css/'); | |
} | |
add_action( 'wp_enqueue_scripts', 'slug_scripts_masonry' ); | |
endif; //! is_admin() | |
endif; //! slug_scripts_masonry exists |