Skip to content

Instantly share code, notes, and snippets.

David Ryan dryan1144

Block or report user

Report or block dryan1144

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
dryan1144 / woocommerce-functions.php
Last active Dec 25, 2018
Change WooCommerce order confirmation text in
View woocommerce-functions.php
add_filter( 'woocommerce_thankyou_order_received_text', 'my_custom_order_received_text' );
function my_custom_order_received_text() { ?>
<div class="order-received-text">
<h5>Your Order Was Successful!</h5>
<p>Congratulations and a huge thank you for registering with us!</p>
<p>You will receive a confirmation email shortly. If you have questions, please do not hesitate to <a href="/contact">contact us</a></p>
<p>Thanks again!</p>
dryan1144 / filter-taxonomy-term-url.php
Created Jul 26, 2017
Filter taxonomy term URLs for SF Pro
View filter-taxonomy-term-url.php
function hck_filter_taxonomy_archives( $url, $sfid) {
if (is_tax('topics')) {
$slug = get_queried_object()->slug;
$url = site_url() .'/'. get_post_type() .'/'. $slug;
return $url;
View filter-sf-pro-query.php
function hck_filter_taxonomy_archives( $query_args, $sfid ) {
if( $sfid == 509 ) {
$query_args = array(
'post_type' => 'articles',
View rewrite-shared-terms-archives.php
function hck_rewrite_post_types() {
View cpt-with-shared-taxonomy.php
function hck_questions_cpt() {
$labels = array(
'name' => _x( 'Topics', 'healthcarekit' ),
'singular_name' => _x( 'Topic', 'healthcarekit' ),
'search_items' => __( 'Search Topics', 'healthcarekit' ),
'all_items' => __( 'All Topics', 'healthcarekit' ),
'parent_item' => __( 'Parent Topic', 'healthcarekit' ),
View Resets.css
/*Resets and Defaults by*/
* {
box-sizing: border-box;
::selection {
dryan1144 / custom-share.css
Last active Dec 21, 2015
Basic CSS styling for custom share.
View custom-share.css
/*Healing Arts Web Custom Share Icons*/
/*Change reference to font folder if necessary*/
@font-face {
font-family: 'icomoon';
src:url('fonts/icomoon.eot?#iefix') format('embedded-opentype'),
url('fonts/icomoon.woff') format('woff'),
url('fonts/icomoon.ttf') format('truetype'),
url('fonts/icomoon.svg#icomoon') format('svg');
dryan1144 / custom-share-template-tag
Last active Dec 21, 2015
Template tag for custom share functionality. Add to single.php and/or page.php.
View custom-share-template-tag
<?php if ( function_exists('healingartsweb_custom_share') ) {
} ?>
dryan1144 / custom-share.php
Last active Dec 21, 2015
Custom share functionality
View custom-share.php
function healingartsweb_custom_share() {
$post_type = get_post_type_object( get_post_type($post) ); ?>
<div class="custom-share-container">
<h3>Share this <?php echo $post_type->labels->singular_name ?></h3>
<ul class="social-media-icons clearfix">
<li class="facebook"><a href="<?php echo get_permalink();?>&t=<?php the_title();?>" target="_blank" title="Share on Facebook">&#xe002;</a></li>
View page.php
<div class="container">
<h1><?php the_title(); ?></h1>
<?php the_content(); ?>
if (is_page('about') {
You can’t perform that action at this time.