Skip to content

Instantly share code, notes, and snippets.

@SiGaCode
Last active August 29, 2015 14:12
Show Gist options
  • Save SiGaCode/0f45976bca02a82fa706 to your computer and use it in GitHub Desktop.
Save SiGaCode/0f45976bca02a82fa706 to your computer and use it in GitHub Desktop.
The Concise Child Theme has nice post info/meta. http://wpspeak.com/introducing-concise-theme/ Here is how to adapt it's layout to Dynamik! Credits to Junioratoms/Larry: http://cobaltapps.com/forum/forum/dynamik-skin-forums/tools-tips-other-skin-resources-aa/47008-fun-with-meta
/* Goes to Dynamik Custom - CSS */
/* Entry Header */
.entry-header.one-third,
.entry-content.two-thirds {
padding-bottom: 0;
}
p.entry-meta {
padding-top: 15px;
}
.entry-time,
.entry-author,
.entry-comments-link,
.entry-categories,
.entry-tags {
border-bottom: 1px solid #eee;
display: block;
margin-bottom: 10px;
padding-bottom: 10px;
}
.entry-author:before,
.entry-categories:before,
.entry-comments-link:before,
.entry-tags:before,
.entry-time:before {
color: #222; /* Icon Color */
display: inline-block;
font: normal 16px/1 'FontAwesome';
margin: -2px 5px 0 0;
vertical-align: middle;
-webkit-font-smoothing: antialiased;
}
.entry-author:before {
content: '\f007';
}
.entry-categories:before {
content: '\f07b';
}
.entry-comments-link:before {
content: '\f075';
}
.entry-tags:before {
content: '\f02b';
}
.entry-time:before {
content: '\f073';
}
//* @link http://wpspeak.com/introducing-concise-theme/
//* Goes to Dynamik Custom - Functions
//* Add one-third class to entry-header
add_filter( 'genesis_attr_entry-header', 'dynamik_genesis_attributes_entry_header' );
function dynamik_genesis_attributes_entry_header( $attributes ) {
if ( !is_page() ) {
$attributes['class'] = 'entry-header one-third first';
}
return $attributes;
}
//* Add two-thirds class to entry-content
add_filter( 'genesis_attr_entry-content', 'dynamik_genesis_attributes_entry_content' );
function dynamik_genesis_attributes_entry_content( $attributes ) {
if ( !is_page() ) {
$attributes['class'] = 'entry-content two-thirds';
}
return $attributes;
}
//* Customize the entry meta in the entry header
add_filter( 'genesis_post_info', 'dynamik_post_info_filter' );
function dynamik_post_info_filter($post_info) {
if ( !is_page() ) {
$post_info = '[post_date] [post_author_posts_link] [post_comments] [post_categories before=""] [post_tags before=""]';
return $post_info;
}
}
//* Remove the entry entry footer
remove_action( 'genesis_entry_footer', 'genesis_entry_footer_markup_open', 5 );
remove_action( 'genesis_entry_footer', 'genesis_post_meta' );
remove_action( 'genesis_entry_footer', 'genesis_entry_footer_markup_close', 15 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment