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
.class-name { | |
-khtml-css3-property: 3px; | |
-moz-css3-property: 3px; | |
-webkit-css3-property: 3px; | |
css3-property: 3px; | |
} |
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
ps -e | grep [s]sh-agent // see if agent is running | |
ssh-agent // see if agent is running | |
ssh-add -l // list keys | |
ssh-keygen -t dsa -f ~/.ssh/id_dsa -C "[email protected]" // add key id_dsa ***MAKE A NOTE OF THE PASSCODE!*** | |
ssh-add ~/.ssh/id_dsa // add keys to agent | |
ssh-add ~/.ssh/id_dsa.pub | |
ssh -T [email protected] -v // check to see if connection to Bitbucket is working | |
// If ssh-add returns "Could not open a connection to your authentication agent." error. | |
exec ssh-agent bash |
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 get_header(); the_post(); ?> | |
<!-- content --> | |
<div id="content" class="left"> | |
<?php display_breadcrumbs() ?> | |
<div class="post"> | |
<?php display_title(); ?> | |
<div class="entry"> | |
<?php the_content(); ?> | |
</div> | |
</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
function remove_editor() { | |
if (isset($_GET['post'])) { | |
$id = $_GET['post']; | |
$template = get_post_meta($id, '_wp_page_template', true); | |
if($template == 'template_name.php'){ | |
remove_post_type_support( 'page', 'editor' ); | |
} | |
} | |
} |
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
function externalLinks() { | |
var url_test = false; | |
var anchors = document.getElementsByTagName("a"); | |
for (var i=anchors.length; i>=0; i--) { | |
var anchor = anchors[i]; | |
anchor_url = encodeURI(anchor); | |
url_test = /baynature/.test(anchor_url); | |
// baynature is the name of the site | |
if (url_test == false){ | |
if (anchor_url != "undefined"){ |
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
var viewportWidth = $(window).width(); | |
if (viewportWidth < 481){ } |
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 | |
//Nature News loop, featured article with thumbnail | |
$args = array ( | |
'posts_per_page' => '1', | |
'page_id' => '4444' | |
); | |
$query = new WP_Query( $args ); | |
echo '<h3 class="title">The Title</h3>'; | |
// The Loop |
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
git clean -f =>DELETES untracked WARNING!!!!! | |
git reflog -- summary with commit #, then: | |
GO BACK TO PREV COMMIT: | |
git reset ---hard <filename> | |
REMOVE COMMITTED: | |
git reset HEAD <file> | |
UN-ADD files => git reset FILE | |
RESTORE PREV VER OF 1 FILE=> |
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
$my_query = new WP_Query($freereads_args); | |
$post_count = $my_query->found_posts; |
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
.video-container { | |
position: relative; | |
padding-bottom: 56.25%; | |
padding-top: 30px; height: 0; overflow: hidden; | |
} | |
.video-container iframe, | |
.video-container object, | |
.video-container embed { | |
position: absolute; |