__('Top Menu', 'alkio'), 'footer-menu' => __('Footer Menu', 'alkio') ) ); add_image_size('smallest', 300, 300, true); add_image_size('largest', 800, 800, true); add_image_size('xtralarge', 2560, 540, true); function custom_header_setup() { $args = array( 'default-image' => get_template_directory_uri() . 'assets/images/header.jpg', 'default-text-color' => '000', 'width' => 4000, 'height' => 750, 'flex-width' => true, 'flex-height' => true, ); add_theme_support( 'custom-header', $args ); } add_action( 'after_setup_theme', 'custom_header_setup' ); function embryo_custom_logo_setup() { $defaults = array( 'height' => 100, 'width' => 400, 'flex-height' => true, 'flex-width' => true, 'header-text' => array( 'site-title', 'site-description' ), 'unlink-homepage-logo' => true, ); add_theme_support( 'custom-logo', $defaults ); } add_action( 'after_setup_theme', 'embryo_custom_logo_setup' ); /*function embryo_widgets_init() { register_sidebar( array( 'name' => __( 'Primary Sidebar', 'embryo' ), 'id' => 'sidebar-1', 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => __( 'Secondary Sidebar', 'embryo' ), 'id' => 'sidebar-2', 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); }*/ /* Better way to add multiple widgets areas */ function widget_registration($name, $id, $description,$beforeWidget, $afterWidget, $beforeTitle, $afterTitle){ register_sidebar( array( 'name' => $name, 'id' => $id, 'description' => $description, 'before_widget' => $beforeWidget, 'after_widget' => $afterWidget, 'before_title' => $beforeTitle, 'after_title' => $afterTitle, )); } function multiple_widget_init(){ widget_registration('Footer widget 1', 'footer-sidebar-1', 'test', '', '', '', ''); widget_registration('Footer widget 2', 'footer-sidebar-2', 'test', '', '', '', ''); // ETC... } add_action('widgets_init', 'multiple_widget_init'); add_theme_support( "title-tag" ); add_theme_support( "automatic-feed-links" ); /* function post_class( $class = '', $post_id = null ) { // Separates classes with a single space, collates classes for post DIV. echo 'class="' . esc_attr( implode( ' ', get_post_class( $class, $post_id ) ) ) . '"'; } */ function create_copyright() { $all_posts = get_posts( 'post_status=publish&order=ASC' ); $first_post = $all_posts[0]; $first_date = $first_post->post_date_gmt; _e( 'Copyright © ', 'alkio' ); if ( substr( $first_date, 0, 4 ) == date( 'Y' ) ) { echo date( 'Y' ); } else { echo substr( $first_date, 0, 4 ) . "-" . date( 'Y' ); } echo ' ' . get_bloginfo( 'name' ) . ' '; _e( 'All rights reserved.','alkio' ); } /*add_theme_support('html5', array( 'comments-list', 'comment-form'))*/ add_theme_support( "wp-block-styles" ); add_theme_support( "align-wide" ); add_theme_support( "responsive-embeds" );