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
<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
add_action( 'wp_enqueue_scripts', 'rb_register_scripts' ); | |
function rb_register_scripts() { | |
wp_enqueue_style( 'font-awesome', '//maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css', array(), CHILD_THEME_VERSION ); | |
wp_enqueue_style( 'google-fonts', '//fonts.googleapis.com/css?family=Open+Sans:400,300,600,700,800,400italic', array(), CHILD_THEME_VERSION ); | |
wp_enqueue_style( 'tackett', get_bloginfo( 'stylesheet_directory' ) . '/css/terra.css' ); | |
wp_enqueue_script( 'jquery' ); | |
wp_enqueue_script( 'jquery-ui-tabs' ); | |
wp_enqueue_script( 'tabs', get_bloginfo( 'stylesheet_directory' ) . '/js/tabs.js', array( 'jquery' ) ); |
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 | |
/** | |
* Figure out the categories on the given page/post/cpt | |
*/ | |
add_action( 'wp_head', 'ubm_category_detection' ); | |
function ubm_category_detection() { | |
if ( !function_exists( 'p2p_register_connection_type' ) ) | |
return; |
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 | |
//* Add text above the loop on the main blog page | |
add_action( 'genesis_archive_title_descriptions', 'add_main_blog_description' ); | |
function add_main_blog_description() { | |
global $post; | |
// Bail if this is an archive page (not the blog page) | |
if ( is_archive() ) |
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
/** | |
* Set the theme colors | |
*/ | |
add_action( 'after_setup_theme', 'prefix_register_colors' ); | |
function prefix_register_colors() { | |
add_theme_support( | |
'editor-color-palette', array( | |
array( | |
'name' => esc_html__( 'Black', 'prefix_textdomain' ), | |
'slug' => 'black', |
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
/** | |
* Get the colors formatted for use with Iris, Automattic's color picker | |
*/ | |
function output_the_colors() { | |
// get the colors | |
$color_palette = current( (array) get_theme_support( 'editor-color-palette' ) ); | |
// bail if there aren't any colors found | |
if ( !$color_palette ) |
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
/** | |
* Add the colors into Iris | |
*/ | |
add_action( 'acf/input/admin_footer', 'gutenberg_sections_register_acf_color_palette' ); | |
function gutenberg_sections_register_acf_color_palette() { | |
$color_palette = output_the_colors(); | |
if ( !$color_palette ) | |
return; | |
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
/** | |
* Remove the wpautop filter from the_content | |
*/ | |
remove_filter( 'the_content', 'wpautop' ); | |
add_filter( 'the_content', function ($content) { | |
if (has_blocks()) { | |
return $content; | |
} | |
return wpautop($content); |