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
dryan1144 / functions.php
Created Oct 8, 2014
Remove product thumbnail from iThemes Exchange cart, checkout and confirmation
View functions.php
<?php
/*
------------------------------------------------------------------------------------------
Remove thumbnails from iThemes checkout and order confirmation
------------------------------------------------------------------------------------------
*/
function custom_exchange_get_content_cart_items_elements( $parts ) {
@dryan1144
dryan1144 / functions.php
Last active Aug 29, 2015
Add default iThemes Exchange product image
View functions.php
<?php
/*
------------------------------------------------------------------------------------------
Add default thumbnail for products on Store page
------------------------------------------------------------------------------------------
*/
function custom_exchange_default_product_image() {
if ( ! it_exchange( 'product', 'has-featured-image' ) ) { ?>
@dryan1144
dryan1144 / functions.php
Created Oct 8, 2014
Change title of Membership Content in iThemes Exchange member's area
View functions.php
<?php
/*
------------------------------------------------------------------------------------------
Change Membership Content to Online Courses on membership content page
------------------------------------------------------------------------------------------
*/
function custom_exchange_membership_content_title( $translated_text ) {
@dryan1144
dryan1144 / mailchimp-firstname-query.php
Last active Aug 29, 2015
Pass a merge list variable from Mailchimp to WordPresss and use it in a template
View mailchimp-firstname-query.php
<?php
if (isset($_GET['firstname'])) { //we have a first name to work with
$firstname = $_GET['firstname'];
echo '<p>Hi '.$firstname.', here is your download.</p>';
} else { //there isn't a first name variable, so decide what to do
@dryan1144
dryan1144 / output-blog-content.php
Last active Aug 29, 2015
Add blog page content before posts
View output-blog-content.php
<?php
/*
----------------------------------------------------------------------------------
Ouput content for blog page (Settings > Static page > posts page) page above posts
----------------------------------------------------------------------------------
*/
function wphandcrafted_add_blog_page_content() {
if ( is_home() ) {
@dryan1144
dryan1144 / remove-wp-version.php
Last active Aug 29, 2015
Remove WP version from header
View remove-wp-version.php
//Place in functions.php
//removes WP version from header
function healingartsweb_remove_version() {
return '';
}
add_filter('the_generator', 'healingartsweb_remove_version');
View Resets.css
/*Resets and Defaults by healingartswebdesign.com*/
* {
box-sizing: border-box;
margin:0;
padding:0;
}
::selection {
background:#000;
color:#FFF;
@dryan1144
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');
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
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') ) {
healingartsweb_custom_share();
} ?>
@dryan1144
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="http://www.facebook.com/sharer.php?u=<?php echo get_permalink();?>&t=<?php the_title();?>" target="_blank" title="Share on Facebook">&#xe002;</a></li>
You can’t perform that action at this time.