Sometimes we want to display a custom primary menu on a custom post types and wonder how to do that. We can use a plugin like Genesis Simple Menus for this work but there are more ... Continue Reading »
Conditional site header logo in Genesis
The new Genesis Sample supports custom header logo feature added default in WordPress and we can customize it using various options available in WordPress Codex. However, sometimes ... Continue Reading »
Reposition Post Info above Post Title in Genesis
//* Reposition post info above post title remove_action( 'genesis_entry_header', 'genesis_post_info', 12); add_action( 'genesis_entry_header', 'genesis_post_info', 9 ); ... Continue Reading »
Reposition Post Meta below Post Title in Genesis
//* Reposition post meta below post title remove_action( 'genesis_entry_footer', 'genesis_post_meta' ); add_action( 'genesis_entry_header', 'genesis_post_meta', 14 ); ... Continue Reading »
Smooth scrolling for hash links in Genesis
<script type="text/javascript"> jQuery(function( $ ){ // Smooth scrolling when clicking on a hash link $('a[href^="#"]').on('click',function (e) ... Continue Reading »
Smooth Scrolling in WordPress
// Select all links with hashes $('a[href*="#"]') // Remove links that don't actually link to anything .not('[href="#"]') .not('[href="#0"]') ... Continue Reading »