Skip to content

Instantly share code, notes, and snippets.

View makbeta's full-sized avatar

makbeta makbeta

View GitHub Profile
@makbeta
makbeta / functions.php
Last active December 18, 2015 23:59
Updating post info line in Wordpress Genesis-based theme
<?php
// Put the following code in functions.php
//* Customize the post info function
add_filter( 'genesis_post_info', 'post_info_filter' );
function post_info_filter($post_info) {
$post_info = '[post_date] by [post_author_posts_link] [post_comments] [post_edit]';
return $post_info;
}
//* Remove the post info function
@makbeta
makbeta / force-layout-settings.php
Created September 16, 2013 00:05 — forked from studiopress/force-layout-settings.php
Wordpress: Genesis layout updates
<?php
//* Do NOT include the opening php tag
//* Force content-sidebar layout setting
add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_content_sidebar' );
//* Force sidebar-content layout setting
add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_sidebar_content' );
//* Force content-sidebar-sidebar layout setting