100, 'width' => 400, 'flex-height' => true, 'flex-width' => true, 'header-text' => array('site-title', 'site-description'), ); add_theme_support('custom-logo', $defaults); add_theme_support('title-tag'); add_theme_support('automatic-feed-links'); add_theme_support('post-thumbnails'); } add_action( 'after_setup_theme', 'atreus_after_setup_theme' ); function atreus_init() { register_nav_menus( array( 'hero-header-menu' => __('Hero Header Menu', 'atreus'), 'hero-footer-menu' => __('Hero Footer Menu', 'atreus') ) ); } add_action( 'init', 'atreus_init' ); function atreus_wp_nav_menu($nav, $args) { if( $args->theme_location == 'hero-header-menu' ) { return preg_replace('/ __('Sidebar', 'atreus'), 'id' => 'custom-side-bar', 'description' => __('Sidebar', 'atreus'), 'before_widget' => '
', 'after_widget' => "
", 'before_title' => '

', 'after_title' => '

', ) ); } add_action( 'widgets_init', 'atreus_widgets_init' ); function atreus_get_search_form($form) { $form = ''; return $form; } add_filter( 'get_search_form', 'atreus_get_search_form', 100 ); function atreus_comment_form_before() { if( get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); } } add_action( 'comment_form_before', 'atreus_comment_form_before' ); add_action( 'customize_register', 'atreus_customize_register' ); function atreus_customize_register($wp_customize) { $wp_customize -> add_section('atreus_theme_colour_section', array( 'title' => __('Theme Colour', 'atreus'), 'priority' => 30, 'capability' => 'edit_theme_options', 'description' => __('Allows you to customize settings for Theme.', 'atreus'), )); $wp_customize -> add_setting('atreus_theme_colour_setting', array( 'default' => 'is-link', 'type' => 'theme_mod', 'capability' => 'edit_theme_options' )); $wp_customize -> add_control(new WP_Customize_Control($wp_customize, 'atreus_them_colour_control', array( 'label' => __('Select Theme Colour', 'atreus'), 'description' => __('Using this option you can change the theme colors', 'atreus'), 'settings' => 'atreus_theme_colour_setting', 'priority' => 10, 'section' => 'atreus_theme_colour_section', 'type' => 'select', 'choices' => array( 'is-link' => 'Blue', 'is-success' => 'Green', 'is-danger' => 'Red', 'is-warning' => 'Yellow', 'is-primary' => 'Turqoise' ) ))); } function atreus_the_post_thumbnail() { } add_action( 'the_post_thumbnail', 'atreus_the_post_thumbnail' );