get_stylesheet_directory_uri() .'/images/head-back.jpg',
'width' => '1600',
'height' => '600',
'flex-height' => false,
'flex-width' => false,
'header-text' => true,
'default-text-color' => '#143745'
);
add_theme_support( 'custom-header', $args );
}
add_action( 'after_setup_theme', 'blogway_theme_setup' );
/**
* Register widget area.
*
* @link https://developer.wordpress.org/themes/functionality/sidebars/#registering-a-sidebar
*/
function blogway_widgets_init() {
register_sidebar( array(
'name' => esc_html__( 'Front-Page Left Sidebar Section', 'blogway'),
'id' => 'front-left-page-sidebar',
'description' => '',
'before_widget' => '
';
while($all_posts->have_posts()): $all_posts->the_post();
?>
';
endif;
}
}
endif;
/*--------------------------------------------------------------------*/
/* Register Google Fonts
/*--------------------------------------------------------------------*/
function blogway_fonts_url() {
$fonts_url = '';
$font_families = array();
$font_families = array('Zilla Slab:300,400,500,600,700,&display=swap');
$query_args = array(
'family' => urlencode( implode( '|', $font_families ) ),
'subset' => urlencode( 'latin,latin-ext' ),
);
$fonts_url = add_query_arg( $query_args, '//fonts.googleapis.com/css' );
return $fonts_url;
}
function blogway_scripts_styles() {
wp_enqueue_style( 'blogway-fonts', blogway_fonts_url(), array(), null );
}
add_action( 'wp_enqueue_scripts', 'blogway_scripts_styles' );
function blogway_menu(){ ?>