Scaffold Aurora Admin marketing theme (Home, Features, Blog)
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
add_action('after_setup_theme', function () {
|
||||
add_theme_support('title-tag');
|
||||
add_theme_support('post-thumbnails');
|
||||
add_theme_support('html5', ['search-form', 'comment-form', 'gallery', 'caption', 'script', 'style']);
|
||||
add_theme_support('automatic-feed-links');
|
||||
add_theme_support('custom-logo', [
|
||||
'height' => 60,
|
||||
'width' => 240,
|
||||
'flex-height' => true,
|
||||
'flex-width' => true,
|
||||
]);
|
||||
|
||||
register_nav_menus([
|
||||
'primary' => __('Primary Navigation', 'aurora-admin-theme'),
|
||||
]);
|
||||
});
|
||||
|
||||
// No admin bar on the marketing site — this is a public-facing product site,
|
||||
// not an app, and the front end should never look like wp-admin leaked
|
||||
// through.
|
||||
add_filter('show_admin_bar', '__return_false');
|
||||
Reference in New Issue
Block a user