Im modifying a style in wordpress and want to potentially have to put icons both in the header and footer locations within the template. Not just the edges.

Does anybody come with an example or connect to some information about this?


Inside your theme's functions.php register icons while you would with register_sidebar() or register_sidebars:

function the_widgets_init() {
     $args = array(
         'name'          => sprintf(__('Sidebar %d'), $i ),
         'id'            => 'sidebar-$i',
         'description'   => '',
         'before_widget' => '<li id="%1$s" class="widget %2$s">',
         'after_widget'  => '</li>',
         'before_title'  => '<h2 class="widgettitle">',
         'after_title'   => '</h2>'
     /* modify the above values as you deem suiting */
     if ( !function_exists('register_sidebars') )
          register_sidebars(3, $args);
     /* first argument (currently '3') is the amount of widgets you want */
add_action( 'init', 'the_widgets_init' );

Add the icons within the spots inside your theme:

<?php if (function_exists('dynamic_sidebar')) : ?>
    <div id="header-sidebars">
        <div id="header-sidebar1">
            <?php dynamic_sidebar(1); ?>
    <div id="footer-sidebars">
        <div id="footer-sidebar1">
            <?php dynamic_sidebar(2); ?>
        <div id="footer-sidebar2">
            <?php dynamic_sidebar(3); ?>
<?php endif; ?>