Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // In functions.php (or a functional plugin)
- add_action( 'genesis_setup', 'dcwd_register_genesis_widget_area' );
- function dcwd_register_genesis_widget_area() {
- // Register widget areas.
- genesis_register_sidebar(
- [
- 'id' => 'avijit-footer',
- 'name' => 'Avijit Footer',
- 'description' => 'This is the widget area for Avijit.',
- ]
- );
- }
- // In the 'forum' page template
- // Customize site footer
- add_action( 'genesis_footer', 'leaguewp_custom_footer' );
- function leaguewp_custom_footer() { ?>
- <div class="site-footer"><div class="wrap"><p></p>
- <?php
- // This is the new code.
- genesis_widget_area(
- 'avijit-footer',
- [
- 'before' => '<div class="avijit-footer widget-area">',
- 'after' => '</div>',
- ]
- );
- ?>
- </div></div>
- <?php
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement