GeckoGrafix
9/7/2016 - 9:02 PM

Fone-bar

Fone-bar

<?php // Do not include the opening php tag-place in functions.php
//* Hook widget before header
add_action( 'genesis_before_header', 'geckografix_telephone_bar' );
function geckografix_telephone_bar() {
  echo '<div class="telephone-bar"><div class="wrap">';
	
  genesis_widget_area( 'telephone-bar', array(
    'before' => '<div class="telephone-bar-inner">',
    'after' => '</div>',
  ) );
	
  echo '</div></div>';
}
//* Register widget areas
genesis_register_sidebar( array(
	'id'          => 'telephone-bar',
	'name'        => __( 'Telephone Bar', 'theme-prefix' ),
	'description' => __( 'This is the Telephone bar above the header.', 'theme-prefix' ),
) );