<?php /** * @package VW Charity NGO * Setup the WordPress core custom header feature. * * @uses vw_charity_ngo_header_style() */ function vw_charity_ngo_custom_header_setup() { add_theme_support( 'custom-header', apply_filters( 'vw_charity_ngo_custom_header_args', array( 'default-text-color' => 'fff', 'header-text' => false, 'width' => 1600, 'height' => 92, 'flex-width' => true, 'flex-height' => true, 'wp-head-callback' => 'vw_charity_ngo_header_style', ) ) ); } add_action( 'after_setup_theme', 'vw_charity_ngo_custom_header_setup' ); if ( ! function_exists( 'vw_charity_ngo_header_style' ) ) : /** * Styles the header image and text displayed on the blog * * @see vw_charity_ngo_custom_header_setup(). */ add_action( 'wp_enqueue_scripts', 'vw_charity_ngo_header_style' ); function vw_charity_ngo_header_style() { //Check if user has defined any header image. if ( get_header_image() ) : $custom_css = " #header,.page-template-custom-home-page #header{ background-image:url('".esc_url(get_header_image())."'); background-position: center top; background-size: cover; }"; wp_add_inline_style( 'vw-charity-ngo-basic-style', $custom_css ); endif; } endif; // vw_charity_ngo_header_style
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
block-patterns | Folder | 0777 |
|
|
getting-started | Folder | 0777 |
|
|
logo | Folder | 0777 |
|
|
tgm | Folder | 0777 |
|
|
themes-widgets | Folder | 0777 |
|
|
typography | Folder | 0777 |
|
|
custom-controls.php | File | 4.36 KB | 0777 |
|
custom-header.php | File | 1.28 KB | 0777 |
|
customizer.php | File | 108.57 KB | 0777 |
|
icon-picker.php | File | 20.11 KB | 0777 |
|
section-pro.php | File | 1.36 KB | 0777 |
|
template-tags.php | File | 3.66 KB | 0777 |
|
wptt-webfont-loader.php | File | 16.86 KB | 0777 |
|