__( 'Main Menu', 'odsimpleblue' ) ) ); } add_action( 'wp_enqueue_scripts', 'odsimpleblue_load_scripts' ); function odsimpleblue_load_scripts() { wp_enqueue_script( 'jquery' ); } add_action( 'comment_form_before', 'odsimpleblue_enqueue_comment_reply_script' ); function odsimpleblue_enqueue_comment_reply_script() { if ( get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); } } add_filter( 'the_title', 'odsimpleblue_title' ); function odsimpleblue_title( $title ) { if ( $title == '' ) { return '→'; } else { return $title; } } add_filter( 'wp_title', 'odsimpleblue_filter_wp_title' ); function odsimpleblue_filter_wp_title( $title ) { return $title . esc_attr( get_bloginfo( 'name' ) ); } add_action( 'widgets_init', 'odsimpleblue_widgets_init' ); function odsimpleblue_widgets_init() { register_sidebar( array ( 'name' => __( 'Sidebar Widget Area', 'odsimpleblue' ), 'id' => 'primary-widget-area', 'before_widget' => '
  • ', 'after_widget' => "
  • ", 'before_title' => '

    ', 'after_title' => '

    ', ) ); register_sidebar( array ( 'name' => __( 'Header Widget Area', 'odsimpleblue' ), 'id' => 'header-widget-area', 'before_widget' => '
  • ', 'after_widget' => "
  • ", 'before_title' => '

    ', 'after_title' => '

    ', ) ); register_sidebar( array ( 'name' => __( 'Footer Left Widget Area', 'odsimpleblue' ), 'id' => 'footer-left-widget-area', 'before_widget' => '
  • ', 'after_widget' => "
  • ", 'before_title' => '

    ', 'after_title' => '

    ', ) ); register_sidebar( array ( 'name' => __( 'Footer Middle Widget Area', 'odsimpleblue' ), 'id' => 'footer-middle-widget-area', 'before_widget' => '
  • ', 'after_widget' => "
  • ", 'before_title' => '

    ', 'after_title' => '

    ', ) ); register_sidebar( array ( 'name' => __( 'Footer Right Widget Area', 'odsimpleblue' ), 'id' => 'footer-right-widget-area', 'before_widget' => '
  • ', 'after_widget' => "
  • ", 'before_title' => '

    ', 'after_title' => '

    ', ) ); } function odsimpleblue_custom_pings( $comment ) { $GLOBALS['comment'] = $comment; ?>
  • id="li-comment-">
  • %2$s...

    ', get_permalink( get_the_ID() ), __( ' Read More', 'odsimpleblue' ) ); } add_filter( 'excerpt_more', 'wpdocs_excerpt_more' ); function odsimpleblue_theme_customizer( $wp_customize ) { $wp_customize->add_section( 'odsimpleblue_logo_section' , array( 'title' => __( 'Logo', 'odsimpleblue' ), 'priority' => 30, 'description' => 'Upload a logo to replace the default site name and description in the header', ) ); $wp_customize->add_setting( 'odsimpleblue_logo', array ( 'default' => '', 'sanitize_callback' => 'esc_url_raw' )); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'odsimpleblue_logo', array( 'label' => __( 'Logo', 'odsimpleblue' ), 'section' => 'odsimpleblue_logo_section', 'settings' => 'odsimpleblue_logo', ) ) ); } add_action('customize_register', 'odsimpleblue_theme_customizer'); add_theme_support( 'custom-header' ); add_theme_support( 'custom-background' ); add_editor_style();