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
<?php if ( get_edit_post_link() ) : ?> | |
<footer class="entry-footer"> | |
<?php | |
edit_post_link( | |
sprintf( | |
wp_kses( | |
/* translators: %s: Name of current post. Only visible to screen readers */ | |
__( 'Edit <span class="screen-reader-text">%s</span>', 'larryworld' ), | |
array( | |
'span' => array( |
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
<div class="entry-content"> | |
<?php | |
the_content(); | |
wp_link_pages( array( | |
'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'larryworld' ), | |
'after' => '</div>', | |
) ); | |
?> | |
</div> |
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
<?php $button = get_field('name_of_field'); ?> | |
<a href="<?php echo $button['url']; ?>" | |
target="<?php echo $button['target']; ?>"> | |
<?php echo $button['title']; ?> | |
</a> |
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
<?php | |
echo '<pre>'; | |
print_r(get_field('name_of_field')); | |
echo '</pre>'; | |
die(); | |
?> |
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
<-- Turns off bouncing applications in the dock --> | |
defaults write com.apple.dock no-bouncing -bool TRUE; | |
killall Dock | |
<-- Change location of Screenshots folder - drag location from finder after the word location --> | |
defaults write com.apple.screencapture location | |
killall SystemUIServer |
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
Renaming a mac user | |
---- | |
sudo scutil --set ComputerName "newname" | |
sudo scutil --set LocalHostName "newname" | |
sudo scutil --set HostName "newname" | |
Then: Flush the DNS cache by typing: dscacheutil -flushcache | |
Then: Restart your Mac | |
- | |
DONE |
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
<script type="text/javascript"> | |
jQuery('iframe.vimeo').each(function(){ | |
Froogaloop(this).addEvent('ready', ready); | |
}); | |
function ready(playerID){ | |
Froogaloop(playerID).addEvent('play', function(data) {play(playerID);}); | |
} | |
function play(playerID){ | |
alert(playerID + " is playing!!!"); |
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
<script type="text/javascript"> | |
$(document).ready(function() { | |
$('body').css('display', 'none'); | |
$('body').fadeIn(300); | |
$('a').click(function() { | |
event.preventDefault(); | |
newLocation = this.href; | |
$('body').fadeOut(300, newpage); | |
}); | |
function newpage() { |
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
var adjustMenu = function() { | |
if (ww < 768) { | |
$(".toggleMenu").css("display", "inline-block"); | |
if (!$(".toggleMenu").hasClass("active")) { | |
$(".nav").hide(); | |
} else { | |
$(".nav").show(); | |
} | |
$(".nav li").unbind('mouseenter mouseleave'); | |
$(".nav li a.parent").unbind('click').bind('click', function(e) { |
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
<div class="pinterest"> | |
<a href="http://pinterest.com/pin/create/button/?url={{ shop.url }}{{ product.url }}&media={{ product.featured_image | product_img_url: 'large' }}" class="pin-it-button" count-layout="horizontal">Pin It</a> | |
<script type="text/javascript" src="http://assets.pinterest.com/js/pinit.js"></script> | |
</div> |
NewerOlder