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
$('.container-class').each(function() { | |
$(this).on('click', function() { | |
var icon = $(this).find('i'); | |
var input = $(this).parent().find('input'); | |
if(icon.hasClass('fa-eye-slash')) { | |
icon.removeClass('fa-eye-slash'); | |
icon.addClass('fa-eye'); | |
input.attr({type:'text'}); | |
} else { | |
icon.removeClass('fa-eye'); |
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
//Custom | |
function font_url() { | |
$font_url = ''; | |
if ( 'off' !== _x( 'on', 'Lato font: on or off', 'foundationpress' ) ) { | |
$font_url = add_query_arg( 'family', urlencode( 'Lato' ), "//fonts.googleapis.com/css" ); | |
} | |
return $font_url; |
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
.top-bar .toggle-topbar.menu-icon a:after { | |
box-shadow: 0 10px 0 1px $oil, 0 16px 0 1px $oil, 0 22px 0 1px $oil; | |
content: ""; | |
display: block; | |
height: 0; | |
position: absolute; | |
right: 0; | |
top: 0; | |
width: 16px; | |
} |
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
.overlay{ | |
position: relative; | |
img#float-logo{ | |
display: block; | |
margin: 0; | |
position: absolute; | |
top: 50%; | |
left: 50%; | |
margin-right: -50%; | |
transform: translate(-50%, -50%) |
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
$topbar-breakpoint: (900px) !default; // Change to 9999px for always mobile layout | |
$topbar-media-query: "only screen and (min-width: #{$topbar-breakpoint})"; |
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
//Get the excerpt for main_content | |
function custom_field_excerpt() { | |
global $post; //Contains data from current post in the loop. | |
$text = get_field('main_content'); //Cache the custom field to variable. | |
if ( '' != $text ) { //Check if it's empty. | |
$text = strip_shortcodes( $text ); //Remove any shortcodes as this is just an excerpt | |
$text = apply_filters('the_content', $text); //Apply the_content to $text | |
$text = str_replace(']]>', ']]>', $text); | |
$excerpt_length = 20; // 20 words |
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
// ---- | |
// Sass (v3.4.6) | |
// Compass (v1.0.1) | |
// ---- | |
@function grid-width($count, $gutter, $width){ | |
$grid-width: ($count - 1) * $gutter + ($count * $width); | |
@return $grid-width; | |
} |
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
$args = array( | |
'post_type' => 'post_type', | |
'orderby' => 'date', | |
'order' => 'ASC', | |
'posts_per_page' => 3 | |
); | |
$reference = new WP_Query( $args ); |
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
//Requires Advanced Custom Fields PLugin and Custom Post Types UI | |
//Use <?php the_field('field_name') ?> to insert the fields into block. | |
<?php | |
$args = array( | |
'post_type' => 'your_custom_post_type', | |
'orderby' => 'date', | |
'order' => 'ASC', | |
); |