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 | |
/********* DO NOT COPY THE PARTS ABOVE THIS LINE *********/ | |
// This disables the Google Sitelink Search Box functionality in WordPress SEO (Premium) | |
add_filter('disable_wpseo_json_ld_search', '__return_true'); |
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 | |
/********* DO NOT COPY THE PARTS ABOVE THIS LINE *********/ | |
/** | |
* Disables the XML Sitemap transient caching in WordPress SEO and WordPress SEO Premium. | |
* WARNING: This may lead to a heavier load on your server and your sitemaps being loaded less fast. | |
*/ | |
add_filter( 'wpseo_enable_xml_sitemap_transient_caching', '__return_false' ); |
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 | |
/********* DO NOT COPY THE PARTS ABOVE THIS LINE *********/ | |
/** | |
* Changes the URL used for the Google Sitelink Search Box functionality in WordPress SEO (Premium) | |
* The returned string must always include {search_term} to indicate where the search term should be used. | |
* | |
* @returns string new searchURL | |
*/ | |
function yoast_change_ssb_search() { |
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 | |
// METHOD 1 | |
sprintf( __( 'Please read %1$sthis%2$s.', 'tacoverdo-example-domain' ), '<a target="_blank" href="' . esc_url( 'https://goo.gl' ) . '">', '</a>' ); | |
// METHOD 2 | |
echo '<a target="_blank" href="' . esc_url( 'https://goo.gl' ) . '">'; | |
__( 'Please read this.', 'tacoverdo-example-domain' ); | |
echo '</a>'; |
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 | |
// Both woo_breadcrumbs() and Yoast breadcrumbs need to be enabled in the WordPress admin for this to function. | |
add_filter( 'woo_breadcrumbs', 'woo_custom_use_yoast_breadcrumbs' ); | |
function woo_custom_use_yoast_breadcrumbs( $breadcrumbs ) { | |
if ( function_exists( 'yoast_breadcrumb' ) ) { | |
$before = '<div class="breadcrumb breadcrumbs woo - breadcrumbs"><div class="breadcrumb - trail">'; | |
$after = '</div></div>'; | |
$breadcrumbs = yoast_breadcrumb( $before, $after, false ); | |
} | |
return $breadcrumbs; |
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 (custom field) content to the post's content before WP SEO Analysis. | |
* | |
* @param string $content The content of a posts content-field. | |
* | |
* @return string The original content plus the value of the postmeta with meta_key '_yoast_postmeta_example'. | |
*/ | |
function yst_custom_content_analysis( $content ) { | |
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
<p>[et_pb_section admin_label="Section" fullwidth="off" specialty="off" transparent_background="on" allow_player_pause="off" inner_shadow="on" parallax="off" parallax_method="off" padding_mobile="off" make_fullwidth="off" use_custom_width="off" width_unit="on" make_equal="off" use_custom_gutter="off" gutter_width="3"][et_pb_row admin_label="Row" make_fullwidth="off" use_custom_width="off" width_unit="on" use_custom_gutter="off" padding_mobile="off" allow_player_pause="off" parallax="off" parallax_method="off" make_equal="off" parallax_1="off" parallax_method_1="off" column_padding_mobile="on" custom_margin="0px||0px|" custom_padding="||10px|"][et_pb_column type="4_4"][et_pb_blurb admin_label="Blurb" url_new_window="off" use_icon="on" icon_color="#005275" use_circle="off" circle_color="#1d1aeb" use_circle_border="off" circle_border_color="#1d1aeb" icon_placement="top" animation="top" background_layout="dark" text_orientation="center" use_icon_font_size="on" background_color="rgba(0,82,117,0.2)" use_border_colo |
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
Verifying that +tacoverdo is my blockchain ID. https://onename.com/tacoverdo |
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
ystThemeConfigL10n = { choose_image: "Use Image"}; | |
// Taken and adapted from http://www.webmaster-source.com/2013/02/06/using-the-wordpress-3-5-media-uploader-in-your-plugin-or-theme/ | |
jQuery(document).ready(function ($) { | |
var yst_custom_uploader; | |
var yst_target_id; | |
$('.yst_image_upload_button').click(function (e) { | |
yst_target_id = e.currentTarget.id.replace(/_button$/, '_input'); | |
e.preventDefault(); | |
if (yst_custom_uploader) { |
NewerOlder