Skip to content

Instantly share code, notes, and snippets.

View tacoverdo's full-sized avatar

Taco Verdonschot tacoverdo

View GitHub Profile
@tacoverdo
tacoverdo / yoast_seo_breadcrumbs_replace_woocommerce.php
Last active October 3, 2020 21:33 — forked from amboutwe/yoast_seo_breadcrumbs_replace_woocommerce_storefront.php
There are two sets of code in this gist. One for non-WooThemes and one for WooThemes. Only copy the section you need to replace breadcrumbs
<?php
/********* DO NOT COPY THE PARTS ABOVE THIS LINE *********/
/* Replace WooCommerce Breadcrumbs With Yoast Breadcrumbs
* Credit: Unknown
* Last Tested: Jan 25, 2018 using Yoast SEO 6.2 on WordPress 4.9.2
* Theme: Non-WooThemes like Twenty Seventeen, Genesis
*/
// Remove WooCommerce Breadcrumbs
@tacoverdo
tacoverdo / replace_woocommerce_bc.php
Created March 6, 2017 13:29
Replace WooCommerce breadcrumbs with Yoast breadcrumbs
<?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;
<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
Verifying that +tacoverdo is my blockchain ID. https://onename.com/tacoverdo
@tacoverdo
tacoverdo / awesome_footer_email.txt
Last active September 28, 2015 16:45
Awesome footer for an email typed on a phone
@tacoverdo
tacoverdo / yaa.txt
Created August 21, 2015 07:31
Yoast ASCII Art
IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII77$ZOO88888OZ$7IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII7IIII777IIII77IIIIIIIIIIIZ8DMMMMMMMMMMMMMMMMNDZ7IIIIIIIIIIIIIIIIIIIII7IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIZO8NNNNNDOZ$777I7III7Z8NMMMMMMMMMMMMMMMMMMMMM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MMMMMMMMMMMMMMMMMMMMMMMOMMDMMDMMMMMMMMMMMMMMMMM7I7IIIIIIIIIIIIIIIII
7777777777777777777II8MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMD7MMMMMMMMMMMMMMMMMMMMMMMM7II7777777777777777
7777777777777777777I7MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMDMMMMMMMMMMMMMMMMMMMMMMMMMNI77777777777777777
@tacoverdo
tacoverdo / disable_transient_caching.php
Last active October 3, 2020 21:34
Disable WordPress SEO transient caching
<?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' );
@tacoverdo
tacoverdo / i18n-q-link.php
Last active November 13, 2017 07:56
What is the best way to translate a text with hyperlink?