Add Custom Content/Code on Top Left (instead of menu)
<?php
/**
* Custom Init for wpCasa
*/
add_action('init', 'custom_wpsight_init');
function custom_wpsight_init() {
remove_action( 'wpsight_header_before', 'wpsight_do_top' );
}
/**
* Built top bar only with social icons
*/
add_action( 'wpsight_header_before', 'custom_do_top' );
function custom_do_top() {
// Open layout wrap
wpsight_layout_wrap( 'top-wrap' ); ?>
<div id="top" class="row">
<div id="top-left" class="span6">
CODE
</div>
<div id="top-right" class="span6">
<?php
// Loop through social icons
$nr = apply_filters( 'wpsight_social_icons_nr', 5 );
$social_icons = array();
for( $i = 1; $i <= $nr; $i++ ) {
$social_icons[] = wpsight_get_social_icon( wpsight_get_option( 'icon_' . $i ) );
}
// Remove empty elements
$social_icons = array_filter( $social_icons );
$output = '<div class="social-icons">';
if( ! empty( $social_icons ) ) {
$i = 1;
foreach( $social_icons as $k => $v ) {
$social_link = wpsight_get_option( 'icon_' . $i . '_link' );
$output .= '<a href="' . $social_link . '" target="_blank" title="' . $v['title'] . '" class="social-icon social-icon-' . $v['id'] . '"><img src="' . $v['icon'] . '" alt="" /></a>' . "\n";
$i++;
}
} else {
$social_icon = wpsight_get_social_icon( 'rss' );
$output .= '<a href="' . get_bloginfo_rss( 'rss2_url' ) . '" target="_blank" title="' . $social_icon['title'] . '" class="social-icon social-icon-' . $social_icon['id'] . '"><img src="' . $social_icon['icon'] . '" alt="" /></a>' . "\n";
}
$output .= '</div><!-- .social-icons -->';
echo apply_filters( 'wpsight_social_icons_top', $output );
?>
</div><!-- #top-right -->
</div><!-- #top --><?php
// Close layout wrap
wpsight_layout_wrap( 'top-wrap', 'close' );
}