Hi, Is there a way to reorder the content of the sidebar so that I have the logo, then the widgets, then the menu? (I’ve tried using a menu in a widget and putting it last, but it doesn’t look good, so I’d rather reorder the elements to use the default menu, if you can help me with that.) I think its probably best to reorder the php, but I haven’t been able to figure out the right coding without wrecking it!
Here’s my site so you can see what I mean. Client wants the phone number big and up at the top!
http://www.jetsurgeia.com/
Hi Emma!
Thank you for using Enfold.
Add this on functions.php:
function avia_sidebar_menu_additions()
{
$settings = avia_header_setting();
$output = "";
if($settings['header_position'] != "header_top")
{
/*add social icons*/
if($settings['sidebarmenu_social'] != "disabled")
{
$social_args = array('outside'=>'ul', 'inside'=>'li', 'append' => '');
$social = avia_social_media_icons($social_args, false);
if($social) $output .= "<div class='av-sidebar-social-container'>".$social."</div>";
}
/*add widgets*/
if(!empty( $settings['sidebarmenu_widgets']))
{
if('av-auto-widget-logic' == $settings['sidebarmenu_widgets'])
{
}
else if( is_dynamic_sidebar( $settings['sidebarmenu_widgets'] ) )
{
ob_start();
dynamic_sidebar( $settings['sidebarmenu_widgets'] );
$output .= ob_get_clean();
$output = "<aside class='avia-custom-sidebar-widget-area sidebar sidebar_right'>".$output."</aside>";
}
}
}
echo $output;
}
add_action('ava_before_main_menu', 'avia_sidebar_menu_additions');
Edit includes > helper-main-menu.php, find this code:
if($headerS['header_social'] == 'icon_active_main' && !empty($headerS['bottom_menu'])) echo $icons;
Below, add this code:
do_action('ava_before_main_menu');
Regards,
Ismael