'', 'default-text-color' => 'ff8800', 'width' => '', 'height' => '', 'flex-height' => true, ) ) ); } add_action( 'after_setup_theme', 'blog_belt_load_language' ); /** * Enqueue Style */ function blog_belt_style() { wp_dequeue_style('ocius-header-font'); wp_enqueue_style('blog-belt-google-fonts', '//fonts.googleapis.com/css?family=Oswald'); wp_enqueue_style( 'blog-belt-parent-style', get_template_directory_uri() . '/style.css' ); wp_enqueue_style( 'blog-belt-style',get_stylesheet_directory_uri() . '/style.css',array( 'blog-belt-parent-style' ) ); } add_action( 'wp_enqueue_scripts', 'blog_belt_style',99 ); /** * Ocius Theme Customizer default values * * @package Ocius */ if ( !function_exists('ocius_default_theme_options_values') ) : function ocius_default_theme_options_values() { $default_theme_options = array( /* Site Layout Added on Child theme*/ 'blog-belt-site-layout-options' => 'clean', /* Microdata Option */ 'blog-belt-schema-data-options' => false, /*Top Header Section Default Value*/ 'ocius-primary-color' => '#4ea371', /*Top Header Section Default Value*/ 'ocius-enable-top-header'=> true, 'ocius-enable-top-header-social'=> true, 'ocius-enable-top-header-search'=> true, 'ocius-enable-top-header-menu'=> true, /*Slider Section Default Value*/ 'ocius-enable-slider' => true, 'ocius-select-category'=> false, 'ocius-slider-number'=>7, /*Blog Page Default Value*/ 'ocius-sidebar-blog-page'=>'right-sidebar', 'ocius-column-blog-page'=> 'one-column', 'ocius-content-show-from'=>'excerpt', 'ocius-excerpt-length'=>25, 'ocius-pagination-options'=>'numeric', 'ocius-read-more-text'=> esc_html__('Continue Reading','blog-belt'), 'ocius-enable-blog-sharing'=> true, /*Single Page Default Value*/ 'ocius-single-page-featured-image'=> true, 'ocius-single-page-related-posts'=> true, 'ocius-single-page-related-posts-title'=> esc_html__('Related Posts','blog-belt'), 'ocius-enable-single-sharing'=> true, /*Sticky Sidebar Options*/ 'ocius-enable-sticky-sidebar'=> true, /*Footer Section*/ 'ocius-footer-copyright' => esc_html__('All Right Reserved 2019.','blog-belt'), 'ocius-go-to-top'=> true, /*Font Options*/ 'ocius-font-family-url'=> esc_url('//fonts.googleapis.com/css?family=Nunito', 'blog-belt'), 'ocius-font-family-name'=> esc_html__('Nunito, sans-serif', 'blog-belt'), 'ocius-font-paragraph-font-size'=> 17, /*Extra Options*/ 'ocius-extra-breadcrumb'=> true, 'ocius-breadcrumb-text'=> esc_html__('You are Here','blog-belt') ); return apply_filters( 'ocius_default_theme_options_values', $default_theme_options ); } endif; /** * Add postMessage support for site title and description for the Theme Customizer. * * @param WP_Customize_Manager $wp_customize Theme Customizer object. */ function blog_belt_customize_register( $wp_customize ) { $default = ocius_default_theme_options_values(); /*Site Layout Options*/ $wp_customize->add_section( 'blog_belt_site_layout_section', array( 'priority' => 30, 'capability' => 'edit_theme_options', 'theme_supports' => '', 'title' => __( 'Layout Options', 'blog-belt' ), 'panel' => 'ocius_panel', ) ); /*Site Layout*/ $wp_customize->add_setting( 'ocius_options[blog-belt-site-layout-options]', array( 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'default' => $default['blog-belt-site-layout-options'], 'sanitize_callback' => 'ocius_sanitize_select' ) ); $wp_customize->add_control( 'ocius_options[blog-belt-site-layout-options]', array( 'choices' => array( 'default' => __('Default Layout','blog-belt'), 'clean' => __('Clean Layout','blog-belt'), ), 'label' => __( 'Select the preferred layout', 'blog-belt' ), 'description' => __('You can make clean layout or default theme layout.', 'blog-belt'), 'section' => 'blog_belt_site_layout_section', 'settings' => 'ocius_options[blog-belt-site-layout-options]', 'type' => 'select', 'priority' => 10, ) ); /*Schema Options*/ $wp_customize->add_section( 'blog_belt_schema_data_option', array( 'priority' => 30, 'capability' => 'edit_theme_options', 'theme_supports' => '', 'title' => __( 'Remove Schema Microdata', 'blog-belt' ), 'panel' => 'ocius_panel', ) ); /*Microdata Option*/ $wp_customize->add_setting( 'ocius_options[blog-belt-schema-data-options]', array( 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'default' => $default['blog-belt-schema-data-options'], 'sanitize_callback' => 'ocius_sanitize_checkbox' ) ); $wp_customize->add_control( 'ocius_options[blog-belt-schema-data-options]', array( 'label' => __( 'Checked to remove built in schema microdata.', 'blog-belt' ), 'description' => __('For SEO, you can enable it.', 'blog-belt'), 'section' => 'blog_belt_schema_data_option', 'settings' => 'ocius_options[blog-belt-schema-data-options]', 'type' => 'checkbox', 'priority' => 10, ) ); } add_action( 'customize_register', 'blog_belt_customize_register' ); if (!function_exists('blog_belt_footer_siteinfo')) { /** * Add footer site info block * * @since 1.0.0 * * @param none * @return void */ function blog_belt_footer_siteinfo() { remove_action('ocius_footer', 'ocius_footer_siteinfo', 15); ?>
a, .offcanvas-menu nav ul.top-menu li a:hover, .offcanvas-menu nav ul.top-menu li.current-menu-item > a, .post-share a:hover, .error-404-title, #ocius-breadcrumbs a:hover, .entry-content a.read-more-text:hover { color : {$blog_belt_primary_color}; }"; //background-color $blog_belt_custom_css .= ".search-form input[type=submit], input[type=\"submit\"], ::selection, #toTop, .breadcrumbs span.breadcrumb, article.sticky .ocius-content-container, .candid-pagination .page-numbers.current, .candid-pagination .page-numbers:hover { background : {$blog_belt_primary_color}; }"; //border-color $blog_belt_custom_css .= "blockquote, .search-form input[type=\"submit\"], input[type=\"submit\"], .candid-pagination .page-numbers { border-color : {$blog_belt_primary_color}; }"; } wp_add_inline_style('blog-belt-style', $blog_belt_custom_css); } endif; add_action('wp_enqueue_scripts', 'blog_belt_dynamic_css', 99);