1. Enqueue Ionicons in Genesis Add this at the end of your child-theme/functions.php <?php //* Do NOT include the opening php tag // Enqueue Ionicons. add_action( ... Continue Reading »
Snippets
Current menu item in screen reader in WordPress
Use one of the following snippet in child-theme/functions.php add_filter( 'nav_menu_link_attributes', 'dy_menu_atts_filter', 10, 3 ); function dy_menu_atts_filter( $atts, $item, ... Continue Reading »
Modify the Site Header URL in Genesis
Change site title url in Genesis /** * Logo URL * */ function dy_site_title_url( $title, $inside, $wrap ) { $inside = sprintf( '<a href="%s" ... Continue Reading »
SVG Support in WordPress
in child-theme/functions.php function cc_mime_types($mimes) { $mimes['svg'] = 'image/svg+xml'; return $mimes; } add_filter('upload_mimes', 'cc_mime_types'); or use ... Continue Reading »
Reposition Hero Section Post title on Single Posts in Corporate Pro
//move post title add_action('genesis_after_header', 'reposition_post_title', 9); function reposition_post_title() { if (!is_single() ) { return; } ... Continue Reading »
is_front_page() v/s is_home()
The Visual Conditional tags, The different Settings > Reading here. When shows. 1. Your latest posts >> is_front_page() and is_home() both will work. URL ... Continue Reading »