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
<?php | |
/*Plugin Name: Create Picture post type and Album category | |
Description: This plugin registers the 'Picture' post type. | |
Version: 1.0 | |
License: GPLv2 | |
*/ | |
function picture_post_type() { | |
$labels = array( | |
'name' => 'Picture', |
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
// custom-logo => goes to function.php | |
function themeslug_theme_customizer( $wp_customize ) { | |
$wp_customize->add_section( 'themeslug_logo_section' , array( | |
'title' => __( 'Branding Logo', 'themeslug' ), | |
'priority' => 30, | |
'description' => 'Upload a logo to replace the default site name and description in the header', | |
) ); | |
$wp_customize->add_setting( 'themeslug_logo' ); | |
$wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'themeslug_logo', array( | |
'label' => __( 'Logo', 'themeslug' ), |
NewerOlder