Footer widgets are disabled by default in Infinity Pro‘s template for the front page. To enable them, just edit the theme’s front-page.php and comment out or delete this line: remove_theme_support( ‘genesis-footer-widgets’ );
Quick Tips
How to remove Date and Title from Posts on Archives in Ambiance Pro
Looking to remove the published date and title of posts in content archives when using Ambiance Pro? Simply edit index.php and comment out or delete the following: add_action( ‘genesis_entry_header’, ‘genesis_do_post_title’, 13 ); and add_action( ‘genesis_entry_header’, ‘ambiance_post_info’, 12 ); Before: After:
How to remove titles on all Pages in Genesis
Looking for a way to remove entry header (having the title) on all static Pages in Genesis without a plugin? Just add the following in child theme’s functions.php: add_action( ‘genesis_before_entry’, ‘custom_remove_titles’ ); /** * Remove entry header on static Pages. */ function custom_remove_titles() { // if we are not on a static Page, abort. if […]
How to make featured images clickable in Generate Pro
Generate Pro has code to add featured image above the content (when featured image is set to be shown in content archives in Genesis settings) but it’s not set to link to post’s permalinks. If you’d like the featured images for entries in content archives to be clickable, simply edit the child theme’s functions.php and […]
How to remove dark overlay on hero images in Showcase Pro
Looking to get rid of the dark overlay on hero images (appearing, for example, on static Pages with featured images) in Showcase Pro? Before: After: Simply locate .bg-primary:after, .bg-light-gray:after { content: ” “; display: block; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 0; } .bg-primary:after { background: #1a1a1a; } in Showcase […]
How to remove Dates from Posts in Genesis
Looking to get rid of dates from appearing in the post info text in your Genesis site? Add the following in child theme’s functions.php: add_filter( ‘genesis_post_info’, ‘sp_post_info_filter’ ); /** * Customize entry meta in the entry header. * * @param string $post_info Existing post info * @return Modified post info */ function sp_post_info_filter( $post_info ) […]
How to remove Primary Navigation Menu from WooCommerce pages in Genesis
In Facebook Genesis group, a user asked: I’m using Cafe Pro and I want to remove the menu from my WooCommerce pages only. I’ve looked through the functions file to try and find where it’s hooked in, but I don’t see it. Can someone point me in the right direction, please? Primary nav menu (genesis_do_nav()) […]
How to display word count for posts in Genesis
Adding the following in child theme’s functions.php will display the word count in post info on single post pages in Genesis: add_shortcode( ‘word_count’, ‘func_word_count’ ); /** * Register custom [word_count] shortcode to display the number of words in a post. * * @return word count. */ function func_word_count() { $content = get_post_field( ‘post_content’, get_the_ID() ); […]
How to add custom attribute to a nav menu item in WordPress
Want to add a custom attribute like target=”foobox” or data-featherlight=”#enews-popup” to a specific nav menu item’s anchor? nav_menu_link_attributes filter hook in WordPress is your friend. For example, adding /** * Add custom attribute and value to a nav menu item’s anchor. * * @author Sridhar Katakam * @link https://sridharkatakam.com/ */ add_filter( ‘nav_menu_link_attributes’, function ( $atts, […]
Genesis Sample’s Functions per WordPress PHP Documentation Standards
I’ve recently set up WPCS (WordPress Coding Standards) in my editor, Sublime Text and have since been diligently adding appropriate comment blocks for the various code I use/write, thanks to the linting or automatic code suggestions. Looking at the code in the current latest Genesis Sample 2.2.4’s functions.php, there are minor improvements that can be […]
Recent Comments