parent()->get( 'Version' ) ); wp_enqueue_style( 'businesity-style', get_stylesheet_uri(), array( $parenthandle ), $theme->get( 'Version' ) ); wp_enqueue_script( 'businesity-script', get_stylesheet_directory_uri() . '/assets/js/custom' . $min . '.js', array( 'jquery', 'charityup-main-script' ), $theme->get( 'Version' ), true ); } endif; add_action( 'wp_enqueue_scripts', 'businesity_enqueue_styles' ); require get_theme_file_path() . '/inc/customizer.php'; /** * Default Colors */ function charityup_get_default_color() { $color['primary'] = '#548cff'; $color['secondary'] = '#4551f9'; return $color; } if ( ! function_exists( 'businesity_dynamic_css' ) ) : /** * Dynamic CSS */ function businesity_dynamic_css() { $default_color = charityup_get_default_color(); $primary_color = get_theme_mod( 'primary_color', $default_color['primary'] ); $secondary_color = get_theme_mod( 'secondary_color', $default_color['secondary'] ); $custom_css = ' .case-study-single .case-study-content a:hover, .case-study-single .case-study-content a:focus { color: ' . esc_attr( $primary_color ) . '; } .site-header { background-color: ' . esc_attr( $primary_color ) . '; } .charity-custom-btn .btn:hover, .charity-custom-btn .btn:focus { background-color: ' . esc_attr( $secondary_color ) . '; } '; wp_add_inline_style( 'businesity-style', $custom_css ); } endif; add_action( 'wp_enqueue_scripts', 'businesity_dynamic_css', 99 );