Created
January 10, 2020 10:34
-
-
Save aslamhindko/9fabbab929454c12c424fac864298492 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Start Theme Spport Title | |
add_theme_support( 'title-tag' ); | |
// Adding excerpt for page | |
add_post_type_support( 'page', 'excerpt' ); | |
// thumbnails image | |
add_theme_support( 'post-thumbnails' ); | |
// wp_nav_menu() | |
register_nav_menu( 'primary', __( 'Navigation Menu') ); | |
// Style Spport Logo css and themes in develoer | |
function my_login_stylesheet() { | |
wp_enqueue_script( 'custom-login', get_template_directory_uri() . '/style-login.js' ); | |
wp_enqueue_style( 'custom-login', get_template_directory_uri() . '/style-login.css' ); | |
} | |
add_action( 'login_enqueue_scripts', 'my_login_stylesheet' ); | |
// Post Type Theme Panel | |
require get_template_directory() . '/assets/themepanel.php'; | |
require get_template_directory() . '/assets/post-type.php'; | |
// New allowed mime types. | |
function my_custom_mime_types( $mimes ) { | |
$mimes['svg'] = 'image/svg+xml'; | |
$mimes['svgz'] = 'image/svg+xml'; | |
$mimes['doc'] = 'application/msword'; | |
// Optional. Remove a mime type. | |
unset( $mimes['exe'] ); | |
return $mimes; | |
} | |
add_filter( 'upload_mimes', 'my_custom_mime_types' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment