Simply add this code to the bottom of your functions.php file: add_action( 'genesis_before_post_content', 'child_social_media_icons', 5 ); /** * Social Media Icons * * @author Greg Rickaby * @since 1.0.0 */ function child_social_media_icons() { if ( !is_front_page() ) { ?> <div id="social-media-icons"> <div> <div data-send="false" data-layout="button_count" data-width="100" data-show-faces="false"></div> <div id="fb-root"></div> <script> (function(d, s, id) { var…
Read More
Customize Genesis footer
add this to funcions.php: /** Customize the entire footer */ remove_action( ‘genesis_footer’, ‘genesis_do_footer’ ); add_action( ‘genesis_footer’, ‘child_do_footer’ ); function child_do_footer() { ?> <center><p>© Copyright <?php echo the_date(‘Y’); ?> yourdomain.com · All Rights Reserved ·</p></center> <?php }
Remove page titles from Genesis themes
Update 1/27/14: If you have updated Genesis so it is using HTML5, then you will need to use this updated code: add_action( 'get_header', 'child_remove_titles' ); function child_remove_titles() { if ( is_singular() ){ remove_action( 'genesis_entry_header', 'genesis_do_post_title' ); } } If you have an older theme without HTML5 (if the above does not work), try this: add…
Read More
Add title to blog pages (genesis)
add to functions.php add_action(‘genesis_before_loop’, ‘add_title’); function add_title() { if(is_page_template( ‘page_blog.php’ )) { the_title( ‘<h1>’, ‘</h1>’); } }
Add WP-Cycle Slider to Home Page (Genesis Themes)
add to home.php /** Place WP-Cycle */ add_action( ‘genesis_before_loop’, ‘wp_cycle’ ); wp-cycle in genesis header install genesis simple hooks plugin (not genesis hooks) Use the genesis_header hook box, check to unhook it, check to execute PHP and then add the following to the box: then put in this code: <?php if( function_exists(‘wp_cycle’) ) wp_cycle(); ?>
To take out date & author for posts – out of functions.php (genesis themes)
// Remove the post info function remove_action('genesis_before_post_content', 'genesis_post_info'); // Remove the post meta function remove_action('genesis_after_post_content', 'genesis_post_meta'); The code above should be placed in the child theme’s functions.php file.