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 | |
function facebook_thumbnail(){ | |
echo '<meta property="og:image" content="http://jmgmarketinggroup.com/jmg/wp-content/uploads/JMG-Logo-v4.png" /> | |
<meta property="og:type" content="website" /> | |
<meta property="og:title" content="JMG Marketing Group | Dedicated to Building Websites that Pay for Themselves" /> | |
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"> | |
<link rel="icon" href="/favicon.ico" type="image/x-icon" > | |
'; | |
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 | |
//LoopBuddy Support. Place in functions.php | |
add_theme_support('loop-standard'); | |
if ( ! function_exists( 'dynamic_loop' ) ) { | |
function dynamic_loop() { | |
global $dynamic_loop_handlers; | |
if ( empty( $dynamic_loop_handlers ) || ! is_array( $dynamic_loop_handlers ) ) | |
return false; | |
ksort( $dynamic_loop_handlers ); |
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 | |
//adding images from Pods to Loopbuddy | |
add_shortcode('jmg_custom_image_before', 'get_custom_field_1'); | |
function get_custom_field_1() { | |
global $post; | |
return '<a href="'.get_post_meta($post->ID, "before_lightbox.guid", true).'" rel="themeblvd_lightbox[before]" title="'.get_post_meta($post->ID, "before_image_title", true).'"><img src="'.get_post_meta($post->ID, "before.guid", true).'" class="before-image"></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
// http://lorempixel.com/ | |
// [phpic width="300" height="200"] | |
<?php | |
function grab_random_picture($atts){ | |
extract(shortcode_atts(array( | |
'width' => 400, | |
'height' => 300, | |
), $atts)); | |
return '<img src="http://lorempixel.com/'. $width . '/' . $height . '" />'; |
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 | |
/*-----------------------------------------------------------------------------------*/ | |
/* MODIFY META DATA | |
/* | |
/* This function will remove the default meta data from the theme. | |
/* You can specify your own text below in the my_custom_meta_information area. | |
/*-----------------------------------------------------------------------------------*/ | |
function my_custom_meta_information(){ | |
?> |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
# compress text, html, javascript, css, xml: | |
AddOutputFilterByType DEFLATE text/plain | |
AddOutputFilterByType DEFLATE text/html | |
AddOutputFilterByType DEFLATE text/xml | |
AddOutputFilterByType DEFLATE text/css | |
AddOutputFilterByType DEFLATE application/xml | |
AddOutputFilterByType DEFLATE application/xhtml+xml | |
AddOutputFilterByType DEFLATE application/rss+xml | |
AddOutputFilterByType DEFLATE application/javascript | |
AddOutputFilterByType DEFLATE application/x-javascript |
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
.hero-image { | |
background: url('http://dev.jmgmarketinggroup.com/arete/wp-content/uploads/Hero-v5.jpg') no-repeat; | |
-webkit-background-size:cover; | |
-moz-background-size:cover; | |
-o-background-size:cover; | |
background-size:cover; | |
min-height:700px; | |
/*min-width:100%;*/ | |
background-attachment:scroll; | |
background-position: bottom right; |