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
<script type="text/javascript" src="http://www.oil-price.net/TABLE3/gen.php?lang=en"></script><noscript> To get the <a href="http://www.oil-price.net/dashboard.php?lang=en#TABLE3">oil price</a>, please enable Javascript.</noscript> | |
<!-- <script type="text/javascript" src="http://www.oil-price.net/widgets/brent_text/gen.php?lang=en"></script><noscript> To get the <a href="http://www.oil-price.net/dashboard.php?lang=en#BRENT_TEXT">oil price</a>, please enable Javascript.</noscript> --> | |
<script type="text/javascript" src="http://www.oil-price.net/widgets/natural_gas_text/gen.php?lang=en"></script><noscript> To get the <a href="http://www.oil-price.net/dashboard.php?lang=en#NATURAL_GAS_TEXT">natural gas price</a>, please enable Javascript.</noscript> |
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
jQuery(document).ready(function( $ ) { | |
$("body *").replaceText( /Hold Me Tight/gi, "Hold Me Tight<span class='trademark'>®</span>" ); | |
}); |
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
jQuery(document).ready(function( $ ) { | |
$('.word-highlight').each(function() { | |
var word = $(this).html(); | |
var index = word.indexOf(' '); | |
if(index == -1) { | |
index = word.length; | |
} | |
$(this).html('<span class="first-word">' + word.substring(0, index) + '</span>' + word.substring(index, word.length)); | |
}); |
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 | |
//* Don't include the opening php tag | |
/** | |
* Return Section (for template selection) | |
* @link http://www.billerickson.net/code/helper-function-for-template-include-and-body-class/ | |
* | |
* @param null | |
* @return string | |
*/ |
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 | |
// Don't include the opening php tag | |
/** | |
* Assign the sidebars | |
*/ | |
add_action( 'genesis_header','prefix_change_genesis_sidebar' ); | |
function prefix_change_genesis_sidebar() { | |
global $post; |
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 | |
// Don't include the opening php tag | |
// Add a tracking script to a particular page, just before the </body> tag | |
add_action( 'wp_footer', 'tj_add_tracking_scripts' ); | |
function tj_add_tracking_scripts() { | |
global $post; | |
if ( is_page( 'your-page-slug' ) ) { | |
?> |
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 | |
// Don't include the opening php tag | |
// Modify a query conditionally in functions.php | |
function prefix_modify_query( $query ) { | |
if ( $query->is_home() && $query->is_main_query() && !is_admin() ) { | |
$query->set( 'post_type', 'my_cpt_name' ); | |
} | |
} | |
add_action( 'pre_get_posts', 'prefix_modify_query' ); |
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 | |
// Don't include the opening php tag | |
// Remove tags support from posts | |
function prefix_unregister_tags() { | |
unregister_taxonomy_for_object_type( 'post_tag', 'post' ); | |
} | |
add_action('init', 'prefix_unregister_tags' ); |
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 | |
//* Don't include the opening php tag | |
//* Remove the author box on single posts HTML5 Themes | |
remove_action( 'genesis_after_entry', 'genesis_do_author_box_single', 8 ); |
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 | |
//* Don't include the php tag | |
//* Set the content width | |
if ( ! isset( $content_width ) ) { | |
$content_width = 840; | |
} |