git remote -v git remote remove origin git remote add origin [email protected]:user/repo.git
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
/** | |
* | |
* Gulpfile setup | |
* | |
* @since 1.0.0 | |
* @authors Ahmad Awais, @digisavvy, @desaiuditd, @jb510, @dmassiani and @Maxlopez | |
* @package neat | |
* @forks _s & some-like-it-neat | |
*/ |
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
document.addEventListener('DOMContentLoaded', function () { | |
if (document.querySelectorAll('#map-canvas').length > 0) { | |
if (document.querySelector('html').lang) | |
lang = document.querySelector('html').lang; | |
else | |
lang = 'en'; | |
var js_file = document.createElement('script'); | |
js_file.type = 'text/javascript'; | |
js_file.src = 'https://maps.googleapis.com/maps/api/js?key=AIzaSyCpyM0WKh2D56hXCJvays0YYDlXaG1A8u8&callback=initialize&language=' + lang; |
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
$blogPage = get_option( 'page_for_posts' ); | |
// Example: | |
// $blogPage = get_option( 'page_for_posts' ); | |
// $sideWYSIWYG = get_field('acf_field_name', $blogPage); |
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
$break-small: 320px; | |
$break-large: 1024px; | |
@mixin respond-to($media) { | |
@if $media == handhelds { | |
@media only screen and (max-width: $break-small) { @content; } | |
} | |
@else if $media == medium-screens { | |
@media only screen and (min-width: $break-small + 1) and (max-width: $break-large - 1) { @content; } | |
} |
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
<header class="entry-header"> | |
<?php if ( get_field( 'on_page_title' )){ | |
echo '<h1 class="entry-title">' . get_field( 'on_page_title' ) . '</h1>'; | |
} else { | |
the_title( '<h1 class="entry-title">', '</h1>' ); | |
} ?> | |
</header><!-- .entry-header --> |
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
// masthead.scss | |
#masthead { | |
width: 100%; | |
height: 80px; | |
display: flex; | |
justify-content: space-between; | |
.site-branding { | |
max-width: 100px; |
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
function wp_editor_fontsize_filter( $buttons ) { | |
array_shift( $buttons ); | |
array_unshift( $buttons, 'fontsizeselect'); | |
array_unshift( $buttons, 'formatselect'); | |
return $buttons; | |
} | |
add_filter('mce_buttons_2', 'wp_editor_fontsize_filter'); |
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.btn { | |
background: #fff; | |
border-radius: 4px; | |
box-shadow: 0 2px 0px 0 rgba(0,0,0,0.25); | |
color: #fff; | |
display: inline-block; | |
padding: 6px 30px 8px; | |
position: relative; | |
text-decoration: none; | |
transition: all 0.1s 0s ease-out; |
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
box-shadow: 2px 2px 2px 2px rgba(0,0,0,0.25); |