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
/** | |
* Description: Enables fade transitions on BS3 carousel by simply adding a class to the `.carousel` div. | |
* Version: 1.0.0 | |
* Last update: 03/29/2016 | |
* Author: Reid Burnett <[email protected]> | |
* | |
*/ | |
.carousel-fade .carousel-inner .item { | |
opacity: 0; |
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
<div class="carousel-inner" role="listbox"> | |
<?php | |
$i = 0; while ( $web_loop->have_posts() ) : $web_loop->the_post(); | |
$count = $web_loop->post_count; | |
// $link = get_field('link'); | |
if ( has_post_thumbnail() ) { | |
$image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'medium' ); | |
} | |
?> | |
<?php if ($i%15==0) { ?> |
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
<div class="embed-responsive embed-responsive-16by9 my-4"> | |
<iframe class="embed-responsive-item" src="https://www.youtube.com/embed/zpOULjyy-n8?rel=0" allowfullscreen></iframe> | |
</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
/** | |
* Removes the "Archive" prepending category and custom post type archives | |
* @author Reid Burnett | |
*/ | |
add_filter( 'get_the_archive_title', function ($title) { | |
if ( is_category() ) { | |
$title = single_cat_title( '', false ); | |
} elseif ( is_tag() ) { | |
$title = single_tag_title( '', false ); | |
} |
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
<link rel="apple-touch-icon-precomposed" sizes="57x57" href="@asset('images/apple-touch-icon-57x57.png')" /> | |
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="@asset('images/apple-touch-icon-114x114.png')" /> | |
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="@asset('images/apple-touch-icon-72x72.png')" /> | |
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="@asset('images/apple-touch-icon-144x144.png')" /> | |
<link rel="apple-touch-icon-precomposed" sizes="60x60" href="@asset('images/apple-touch-icon-60x60.png')" /> | |
<link rel="apple-touch-icon-precomposed" sizes="120x120" href="@asset('images/apple-touch-icon-120x120.png')" /> | |
<link rel="apple-touch-icon-precomposed" sizes="76x76" href="@asset('images/apple-touch-icon-76x76.png')" /> | |
<link rel="apple-touch-icon-precomposed" sizes="152x152" href="@asset('images/apple-touch-icon-152x152.png')" /> | |
<link rel="icon" type="image/png" href="@asset('images/favicon-196x196.png')" sizes="196x196" /> | |
<link rel="icon" ty |
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
<!doctype html> | |
<!-- Bootstrap Under Construction Boilerplate --> | |
<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ --> | |
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]--> | |
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]--> | |
<!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endif]--> | |
<!-- Consider adding a manifest.appcache: h5bp.com/d/Offline --> | |
<!--[if gt IE 8]><!--> | |
<html class="no-js" lang="en"> | |
<!--<![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
/** | |
* Fix location of ACF local JSON. | |
* | |
* Since Sage does some surgery on the WordPress template locations, ACF looks in | |
* the wrong location for the acf-json directory. We will fix this by manually | |
* hooking into that functionality and attempting to save in the right spot. | |
* | |
* @param string $path | |
* @return string | |
*/ |
OlderNewer