<?php | |
genesis_register_sidebar( array( | |
'id' => 'widget-slug', | |
'name' => __( 'Widget Location Title', 'child_theme_name' ), | |
'description' => __( 'Widget Location Description.', 'child_theme_name' ), | |
)); | |
// an example of how to output the registered sidebar to a specific theme location | |
add_action( 'genesis_after_content', 'home_bottom_section' ); | |
function home_bottom_section() { | |
echo '<div class="bottom-section">'; | |
dynamic_sidebar( 'widget-slug' ); | |
echo '</div>'; | |
} |
Check Out These Related Articles!
-
How to Move the Genesis Entry Header
By default, the genesis entry header is going to output inside the content but what if we wanted to move it outside of this location. For example, we may want…
-
Redirect WordPress Registration page to a Custom Registration Page
I'm working on a project where we created a custom registration form with Gravity Forms with a custom user role assigned when they registered. As a result, I needed a way…
-
How to use WP PageNavi with Custom Post Types
I recently worked on a project where the client wanted to add paging functionality to each of the custom post types I had created for the site build. To accomplish…
-
How to order get_terms() based on a custom field
I had a recent request for the ability to order sermon terms by the start date of the sermon series. In this tutorial I will show you how to order get_terms() based…
-
How to organize and output events by date in a loop
So I had a summer festival website where the client requested that I output a title section for each new day of events. Basically, we were outputting little event snippets…
Leave a Reply