250, 'height' => 250, 'flex-width' => true, 'flex-height' => true, ) ); add_theme_support( 'custom-background', array( 'default-color' => 'ffffff' ) ); add_theme_support( 'html5', array('comment-form','comment-list','gallery','caption',) ); add_editor_style( array( 'assets/css/editor-style.css') ); } /** * Register widget area. */ function automotive_charging_station_widgets_init() { register_sidebar( array( 'name' => __( 'Blog Sidebar', 'automotive-charging-station' ), 'id' => 'sidebar-1', 'description' => __( 'Add widgets here to appear in your sidebar on blog posts and archive pages.', 'automotive-charging-station' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => __( 'Page Sidebar', 'automotive-charging-station' ), 'id' => 'sidebar-2', 'description' => __( 'Add widgets here to appear in your sidebar on pages.', 'automotive-charging-station' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => __( 'Sidebar 3', 'automotive-charging-station' ), 'id' => 'sidebar-3', 'description' => __( 'Add widgets here to appear in your sidebar on blog posts and archive pages.', 'automotive-charging-station' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => __( 'Footer 1', 'automotive-charging-station' ), 'id' => 'footer-1', 'description' => __( 'Add widgets here to appear in your footer.', 'automotive-charging-station' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => __( 'Footer 2', 'automotive-charging-station' ), 'id' => 'footer-2', 'description' => __( 'Add widgets here to appear in your footer.', 'automotive-charging-station' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => __( 'Footer 3', 'automotive-charging-station' ), 'id' => 'footer-3', 'description' => __( 'Add widgets here to appear in your footer.', 'automotive-charging-station' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => __( 'Footer 4', 'automotive-charging-station' ), 'id' => 'footer-4', 'description' => __( 'Add widgets here to appear in your footer.', 'automotive-charging-station' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); } add_action( 'widgets_init', 'automotive_charging_station_widgets_init' ); // enqueue styles for child theme function automotive_charging_station_enqueue_styles() { wp_enqueue_style( 'automotive-charging-station-fonts', automobile_hub_fonts_url(), array(), null ); // Bootstrap wp_enqueue_style( 'bootstrap-css', get_theme_file_uri( '/assets/css/bootstrap.css' ) ); // Theme block stylesheet. wp_enqueue_style( 'automotive-charging-station-block-style', get_theme_file_uri( '/assets/css/blocks.css' ), array( 'automotive-charging-station-child-style' ), '1.0' ); // enqueue parent styles wp_enqueue_style('automobile-hub-style', get_template_directory_uri() .'/style.css'); // enqueue child styles wp_enqueue_style('automotive-charging-station-child-style', get_stylesheet_directory_uri() .'/style.css', array('automobile-hub-style')); require get_theme_file_path( '/tp-theme-color.php' ); wp_add_inline_style( 'automotive-charging-station-child-style',$automobile_hub_tp_theme_css ); require get_theme_file_path( '/tp-body-width-layout.php' ); wp_add_inline_style( 'automotive-charging-station-child-style',$automobile_hub_tp_theme_css ); wp_enqueue_script( 'comment-reply', '/wp-includes/js/comment-reply.min.js', array(), false, true ); $automobile_hub_body_font_family = get_theme_mod('automobile_hub_body_font_family', ''); $automobile_hub_heading_font_family = get_theme_mod('automobile_hub_heading_font_family', ''); $automobile_hub_menu_font_family = get_theme_mod('automobile_hub_menu_font_family', ''); $automobile_hub_tp_theme_css = ' body{ font-family: '.esc_html($automobile_hub_body_font_family).'!important; } p.simplep,.more-btn a{ font-family: '.esc_html($automobile_hub_body_font_family).'!important; } h1{ font-family: '.esc_html($automobile_hub_heading_font_family).'!important; } h2{ font-family: '.esc_html($automobile_hub_heading_font_family).'!important; } h3{ font-family: '.esc_html($automobile_hub_heading_font_family).'!important; } h4{ font-family: '.esc_html($automobile_hub_heading_font_family).'!important; } h5{ font-family: '.esc_html($automobile_hub_heading_font_family).'!important; } h6{ font-family: '.esc_html($automobile_hub_heading_font_family).'!important; } #theme-sidebar .wp-block-search .wp-block-search__label{ font-family: '.esc_html($automobile_hub_heading_font_family).'!important; } .main-navigation a{ font-family: '.esc_html($automobile_hub_menu_font_family).'!important; } '; wp_add_inline_style('automobile-hub-style', $automobile_hub_tp_theme_css); } add_action('wp_enqueue_scripts', 'automotive_charging_station_enqueue_styles'); function automotive_charging_station_admin_scripts() { // Backend CSS wp_enqueue_style( 'automotive-charging-station-backend-css', get_theme_file_uri( '/assets/css/customizer.css' ) ); } add_action( 'admin_enqueue_scripts', 'automotive_charging_station_admin_scripts' ); function automotive_charging_station_theme_setup() { require get_theme_file_path( '/customizer/customize-control-toggle.php' ); if ( ! defined( 'AUTOMOBILE_HUB_PRO_THEME_NAME' ) ) { define( 'AUTOMOBILE_HUB_PRO_THEME_NAME', esc_html__( 'Automotive Pro Theme', 'automotive-charging-station' )); } if ( ! defined( 'AUTOMOBILE_HUB_PRO_THEME_URL' ) ) { define( 'AUTOMOBILE_HUB_PRO_THEME_URL', 'https://www.themespride.com/products/charging-station-wordpress-theme' ); } if ( ! defined( 'AUTOMOBILE_HUB_FREE_THEME_URL' ) ) { define( 'AUTOMOBILE_HUB_FREE_THEME_URL', 'https://www.themespride.com/products/free-automotive-wordpress-theme' ); } if ( ! defined( 'AUTOMOBILE_HUB_DEMO_THEME_URL' ) ) { define( 'AUTOMOBILE_HUB_DEMO_THEME_URL', 'https://page.themespride.com/automotive-charging-station/' ); } if ( ! defined( 'AUTOMOBILE_HUB_DOCS_THEME_URL' ) ) { define( 'AUTOMOBILE_HUB_DOCS_THEME_URL', 'https://page.themespride.com/demo/docs/automotive-charging-station/' ); } if ( ! defined( 'AUTOMOBILE_HUB_DOCS_URL' ) ) { define( 'AUTOMOBILE_HUB_DOCS_URL', esc_url('https://page.themespride.com/demo/docs/automotive-charging-station/')); } if ( ! defined( 'AUTOMOBILE_HUB_RATE_THEME_URL' ) ) { define( 'AUTOMOBILE_HUB_RATE_THEME_URL', 'https://wordpress.org/support/theme/automotive-charging-station/reviews/#new-post' ); } if ( ! defined( 'AUTOMOBILE_HUB_CHANGELOG_THEME_URL' ) ) { define( 'AUTOMOBILE_HUB_CHANGELOG_THEME_URL', get_stylesheet_directory() . '/readme.txt' ); } if ( ! defined( 'AUTOMOBILE_HUB_SUPPORT_THEME_URL' ) ) { define( 'AUTOMOBILE_HUB_SUPPORT_THEME_URL', 'https://wordpress.org/support/theme/automotive-charging-station' ); } define('AUTOMOTIVE_CHARGING_STATION_THEME_URL',__('https://www.themespride.com/products/free-automotive-wordpress-theme','automotive-charging-station') ); if ( ! function_exists( 'automotive_charging_station_credit' ) ) { function automotive_charging_station_credit(){ echo "".esc_html__(get_theme_mod('automobile_hub_footer_text',__('Charging Station WordPress Theme','automotive-charging-station'))).""; } } require get_stylesheet_directory() . '/customizer/customizer.php'; } add_action( 'after_setup_theme', 'automotive_charging_station_theme_setup' );