core/Theme.php
public function addThemeSupports()
    {
        load_theme_textdomain('novusopress', $this->paths->getBaseLanguageDir());

        add_theme_support('title-tag');
        add_theme_support('automatic-feed-links');
        add_theme_support('post-thumbnails');
        add_theme_support('html5', ['search-form', 'comment-form', 'comment-list', 'gallery', 'caption']);

        register_nav_menus(['main-menu' => __('Main Menu', 'novusopress')]);

        if ($this->getThemeOption('clean_document_head')) {
            $this->cleanDocumentHead();
        }

        if (file_exists(sprintf('%s/css/editor-style.css', $this->paths->getThemeAssetsDir()))) {
            add_editor_style('assets/css/editor-style.css');
        }
    }
public function addThemeSupports()
    {
        load_theme_textdomain('novusopress', $this->paths->getBaseLanguageDir());

        add_theme_support('title-tag');
        add_theme_support('automatic-feed-links');
        add_theme_support('post-thumbnails');
        add_theme_support('html5', ['search-form', 'comment-form', 'comment-list', 'gallery', 'caption']);

        register_nav_menus(['main-menu' => __('Main Menu', 'novusopress')]);

        if ($this->getThemeOption('clean_document_head')) {
            $this->cleanDocumentHead();
        }

        if (file_exists(sprintf('%s/css/editor-style.css', $this->paths->getThemeAssetsDir()))) {
            add_editor_style('assets/css/editor-style.css');
        }
    }
public function addThemeSupports ( ) { load_theme_textdomain ( 'novusopress' , $ this -> paths -> getBaseLanguageDir ( ) ) ; add_theme_support ( 'title-tag' ) ; add_theme_support ( 'automatic-feed-links' ) ; add_theme_support ( 'post-thumbnails' ) ; add_theme_support ( 'html5' , [ 'search-form' , 'comment-form' , 'comment-list' , 'gallery' , 'caption' ] ) ; register_nav_menus ( [ 'main-menu' => __ ( 'Main Menu' , 'novusopress' ) ] ) ; if ( $ this -> getThemeOption ( 'clean_document_head' ) ) { $ this -> cleanDocumentHead ( ) ; } if ( file_exists ( sprintf ( '%s/css/editor-style.css' , $ this -> paths -> getThemeAssetsDir ( ) ) ) ) { add_editor_style ( 'assets/css/editor-style.css' ) ; } }
Enables theme supports
Enables theme supports