Browse Source

Update setup.php.

pull/13/head
Ned Zimmerman 7 years ago
parent
commit
b9c42c4d44
No known key found for this signature in database
GPG Key ID: FF56334A013120CA
  1. 51
      app/setup.php

51
app/setup.php

@ -11,45 +11,9 @@ use Roots\Sage\Template\BladeProvider;
* Theme assets
*/
add_action('wp_enqueue_scripts', function () {
wp_enqueue_style(
'aldine/webfonts',
'https://fonts.googleapis.com/css?family=Karla:400,400i,700|Spectral:400,400i,600',
false,
null
);
$webfonts = 'https://fonts.googleapis.com/css?family=Karla:400,400i,700|Spectral:400,400i,600';
wp_enqueue_style('aldine/webfonts', $webfonts, false, null);
wp_enqueue_style('aldine/main.css', asset_path('styles/main.css'), false, null);
/* wp_enqueue_style(
'uio/normalize.css',
get_theme_file_uri() . '/lib/infusion/src/lib/normalize/css/normalize.css',
false,
null
);
wp_enqueue_style(
'uio/fluid.css',
get_theme_file_uri() . '/lib/infusion/src/framework/core/css/fluid.css',
false,
null
);
wp_enqueue_style(
'uio/enactors.css',
get_theme_file_uri() . '/lib/infusion/src/framework/preferences/css/Enactors.css',
false,
null
);
wp_enqueue_style(
'uio/prefseditor.css',
get_theme_file_uri() . '/lib/infusion/src/framework/preferences/css/PrefsEditor.css',
false,
null
);
wp_enqueue_style(
'uio/separatedpanelprefseditor.css',
get_theme_file_uri() . '/lib/infusion/src/framework/preferences/css/SeparatedPanelPrefsEditor.css',
false,
null
);
wp_enqueue_script('uio.js', get_theme_file_uri() . '/lib/infusion/infusion-uiOptions.js', ['jquery'], null, true);
*/
wp_enqueue_script('aldine/main.js', asset_path('scripts/main.js'), ['jquery'], null, true);
wp_localize_script('aldine/main.js', 'SAGE_DIST_PATH', get_theme_file_uri() . '/dist/');
}, 100);
@ -73,22 +37,19 @@ add_action('after_setup_theme', function () {
]);
/**
* Custom Header
* Enable custom headers
* @link https://developer.wordpress.org/themes/functionality/custom-headers/
*/
add_theme_support('custom-header', [
'default-image' => asset_path('images/header.jpg'),
'width' => 1650,
'height' => 880,
'default-text-color' => '#000',
// 'header-text' => true,
// 'uploads' => true,
// 'wp-head-callback' => '',
// 'admin-head-callback' => '',
// 'admin-preview-callback' => '',
]);
/**
* Custom Logo
* Enable custom logos
* @link https://developer.wordpress.org/themes/functionality/custom-logo/
*/
add_theme_support('custom-logo');

Loading…
Cancel
Save