esc_html__('Primary Menu', 'axiohost'), 'footer_menu' => esc_html__('Footer Menu', 'axiohost'), )); } add_action('init', 'axiohost_nav_menus'); //axiohost Sidebar function axiohost_sidebar(){ register_sidebar(array( 'name' => esc_html__('Axiohost Sidebar', 'axiohost'), 'id' => 'axiohost-sidebar', 'description' => esc_html__('Axiohost sidebar', 'axiohost'), 'before_title' => '', 'before_widget' => '' )); register_sidebar(array( 'name' => esc_html__('Footer One', 'axiohost'), 'id' => 'footer1', 'description' => esc_html__('Footer one sidebar', 'axiohost'), 'before_title' => '', 'before_widget' => '' )); register_sidebar(array( 'name' => esc_html__('Footer Two', 'axiohost'), 'id' => 'footer2', 'description' => esc_html__('Footer two sidebar', 'axiohost'), 'before_title' => '', 'before_widget' => '' )); register_sidebar(array( 'name' => esc_html__('Footer Three', 'axiohost'), 'id' => 'footer3', 'description' => esc_html__('Footer three sidebar', 'axiohost'), 'before_title' => '', 'before_widget' => '' )); register_sidebar(array( 'name' => esc_html__('Footer Four', 'axiohost'), 'id' => 'footer4', 'description' => esc_html__('Footer four sidebar', 'axiohost'), 'before_title' => '', 'before_widget' => '' )); register_sidebar(array( 'name' => esc_html__('Footer Links', 'axiohost'), 'id' => 'footer-menu', 'description' => esc_html__('Footer links widget', 'axiohost'), 'before_widget' => '' )); } add_action('widgets_init', 'axiohost_sidebar'); //axiohost excerpt function axiohost_excerpt($limits = 25){ $limits = $limits + 1; $content = strip_tags(get_the_content()); $make_index = explode(' ', $content, $limits); if(count($make_index) <= $limits){ array_pop($make_index); } $excerpt = implode(' ', $make_index); return $excerpt; } //Override redux message function axiohost_override_redux_message() { update_option( 'ReduxFrameworkPlugin_ACTIVATED_NOTICES', []); } add_action('admin_init', 'axiohost_override_redux_message', 30); //axiohost extra CSS function axiohost_extra_css(){ if(class_exists('ReduxFrameworkPlugin')){ global $axiohost; ?> (', ' ', $links); $links = str_replace(')', '', $links); return $links; } add_filter('get_archives_link', 'axiohost_add_span_in_archive'); function axiohost_add_span_in_archive($links) { $links = str_replace(' (', ' ', $links); $links = str_replace(')', '', $links); return $links; } function axiohost_search_form( $form ) { $form = '
'; return $form; } add_filter( 'get_search_form', 'axiohost_search_form' ); //Add custom post class function axiohost_custom_post_class( $classes ) { if(is_single()){ $classes[] = 'single-post'; } else{ $classes[] = 'blog-post blog-spacing blog-list wow fadeIn'; } return $classes; } add_filter( 'post_class', 'axiohost_custom_post_class'); //Axiohost Search Form function get_axiohost_search_form(){?>