Looking to display a specific custom sidebar (widget area container) for archives (Posts page, category/tag/author/search results etc. archives) and single blog post pages widgets of custom another sidebar on static Pages in the Primary Sidebar location of your Genesis site? Just add the following in your child theme’s functions.php // Register Blog Sidebar widget area […]
Free Content
Footer Navigation Menu in Genesis
Genesis Sample child theme has code to rename secondary navigation location as Footer Menu and show the menu assigned to that location inside the footer. //* Rename primary and secondary navigation menus add_theme_support( ‘genesis-menus’ , array( ‘primary’ => __( ‘After Header Menu’, ‘genesis-sample’ ), ‘secondary’ => __( ‘Footer Menu’, ‘genesis-sample’ ) ) ); and add_action( […]
Custom Genesis Featured Posts Widget plugin
Updated on July 27, 2020 for Genesis 3.3.2. In the past Gary Jones has kindly created a plugin when I asked for his help in customizing the standard Featured Posts widget that Genesis comes shipped with. I have now forked and updated it to match the code in the current latest version of Genesis, 2.3.1. […]
How to slant edges of elements in Genesis
For a while I had this article on viget.com saved in my pinboard. I tried the clip-path CSS code given in that article a few times and wasn’t sure what the values were representing or where they came from plus couldn’t get it working in Firefox. I finally took the time yesterday to research on […]
How to add menu-slug-container class when setting a custom one in wp_nav_menu’s container_class
In my last tutorial I wanted to output a nav menu assigned to a particular theme location with the nav element having the standard auto generated class as well as a custom one. wp_nav_menu( array( ‘theme_location’ => ‘header’, ‘divider_html’ => $divider_html, ‘container’ => ‘nav’, ‘menu_class’ => ‘menu genesis-nav-menu menu-header js-superfish’ ) ); outputs for example, […]
How to add a Jump to Recipe button when using EasyRecipe in Genesis
In Genesis Slack a user asked, Is there an easy way to add a div id to a plugin without editing the plugin files? I’d love to wrap all EasyRecipe recipes in the same div id so I can jump to them within a post. Right now the plugin does assign an id, but it’s […]
How to add featured images before entry on single Posts in Genesis
Updated on July 01, 2017 In Genesis Slack a user asked, Hello everyone, I’m working on a custom theme and I’d like to customize my featured image to look like this: https://preview.arraythemes.com/publisher/2015/05/20/heydays-branding/ We can register a custom image size for the featured images on single Posts and display the featured image (if present) using genesis_before_entry […]
How to add Google Tag Manager code in Genesis
Updated on November 30, 2016 In my Facebook group a user asks: Can someone point me to the technique for adding Google Tags or “google tag manager” to a WordPress site? It needs to go beneath the tag of the header file. I’m uncertain how to proceed. Thanks. To implement Google Tag Manager in your […]
How to make BuddyPress Members and Groups pages obey their Page layout setting in Genesis
Over in Genesis Slack chat a user asked, Has anyone got some code lying around that makes BuddyPress pages actually respect the genesis layout selection? We can use the code from How to make Posts page obey its Page layout setting in Genesis article and tweak it so that layout selected for the Members page […]
How to add font icons before navigation menu items in Genesis using Dashicons
In Genesis Facebook group a user asked, Just wondering if anyone in this august group could recommend the best, most detailed tutorial for adding dashicons to a Genesis navbar. Much appreciated We can load Dashicons, specify classes to the menu items and add CSS to display icons before the nav bar menu items. Step 1 […]
Recent Comments