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
View subpages.html
<body class="page-parent-about page-aboutsubpage">
.page-parent-about h2 {
View page-about.php
<div class="container">
<h1><?php the_title(); ?></h1>
<?php the_content(); ?>
<div class="sidebar about-sidebar">
<h3>Unique About Page Sidebar</h3>
<p>Some stuff.</p>
View page.php
<div class="container">
<h1><?php the_title(); ?></h1>
<?php the_content(); ?>
if (is_page('about') {
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>
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.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');
View Resets.css
/*Resets and Defaults by*/
* {
box-sizing: border-box;
::selection {
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');
dryan1144 / output-blog-content.php
Last active Aug 29, 2015
Add blog page content before posts
View output-blog-content.php
Ouput content for blog page (Settings > Static page > posts page) page above posts
function wphandcrafted_add_blog_page_content() {
if ( is_home() ) {
You can’t perform that action at this time.