esc_html__( 'Main Menu', 'services' ), 'footer-menu' => esc_html__( 'Footer Menu', 'services' ) ) ); } add_action( 'after_setup_theme', 'services_woocommerce_support' ); function services_woocommerce_support() { add_theme_support( 'woocommerce' ); } require_once ( get_template_directory() . '/about.php' ); add_action( 'wp_enqueue_scripts', 'services_load_scripts' ); function services_load_scripts() { wp_enqueue_style( 'services-style', get_stylesheet_uri() ); wp_enqueue_script( 'jquery' ); wp_register_script( 'services-videos', get_template_directory_uri() . '/js/videos.js' ); wp_enqueue_script( 'services-videos' ); wp_add_inline_script( 'services-videos', 'jQuery(document).ready(function($){$("#wrapper").vids();});' ); } add_filter( 'document_title_separator', 'services_document_title_separator' ); function services_document_title_separator( $sep ) { $sep = "|"; return $sep; } add_filter( 'the_title', 'services_title' ); function services_title( $title ) { if ( $title == '' ) { return '→'; } else { return $title; } } function services_read_more_link() { if ( ! is_admin() ) { return ' ...'; } } add_filter( 'the_content_more_link', 'services_read_more_link' ); function services_excerpt_read_more_link( $more ) { if ( ! is_admin() ) { global $post; return ' ...'; } } add_filter( 'excerpt_more', 'services_excerpt_read_more_link' ); add_action( 'widgets_init', 'services_widgets_init' ); function services_widgets_init() { register_sidebar( array ( 'name' => esc_html__( 'Header Widget Area', 'services' ), 'id' => 'header-widget-area', 'before_widget' => '
  • ', 'after_widget' => "
  • ", 'before_title' => '

    ', 'after_title' => '

    ', ) ); register_sidebar( array ( 'name' => esc_html__( 'Footer Widget Area', 'services' ), 'id' => 'footer-widget-area', 'before_widget' => '
  • ', 'after_widget' => "
  • ", 'before_title' => '

    ', 'after_title' => '

    ', ) ); register_sidebar( array ( 'name' => esc_html__( 'Sidebar Widget Area', 'services' ), 'description' => esc_html__( 'Does not display for single posts.', 'services' ), 'id' => 'primary-widget-area', 'before_widget' => '
  • ', 'after_widget' => "
  • ", 'before_title' => '

    ', 'after_title' => '

    ', ) ); } add_action( 'comment_form_before', 'services_enqueue_comment_reply_script' ); function services_enqueue_comment_reply_script() { if ( get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); } } function services_custom_pings( $comment ) { ?>
  • id="li-comment-">
  • add_setting( 'services_accent_color', array( 'default' => '#00b4ff', 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'postMessage' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'accent_color', array( 'label' => esc_html__( 'Theme Accent Color', 'services' ), 'section' => 'colors', 'settings' => 'services_accent_color' ) ) ); $wp_customize->add_setting( 'services_link_color', array( 'default' => '#00b4ff', 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'postMessage' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'link_color', array( 'label' => esc_html__( 'Link Color', 'services' ), 'section' => 'colors', 'settings' => 'services_link_color' ) ) ); $wp_customize->add_setting( 'services_header_color', array( 'default' => '#00b4ff', 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'postMessage' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'header_color', array( 'label' => esc_html__( 'Header Text Color', 'services' ), 'section' => 'colors', 'settings' => 'services_header_color' ) ) ); $wp_customize->add_section( 'services_fonts', array( 'title' => 'Fonts', 'priority' => 200 ) ); $wp_customize->add_setting( 'services_header_font', array( 'default' => 'Helvetica', 'sanitize_callback' => 'sanitize_text_field', 'transport' => 'postMessage' ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'header_font', array( 'label' => esc_html__( 'Header Text Font', 'services' ), 'description' => esc_html__( 'If adding a Google font, make sure to capitalize all words, save, and then refresh to preview.', 'services' ), 'section' => 'services_fonts', 'settings' => 'services_header_font' ) ) ); $wp_customize->get_panel( 'nav_menus' )->active_callback = '__return_false'; } add_action( 'customize_register', 'services_customizer', 20 ); function services_customizer_css() { ?>