diff --git a/inc/theme-init.php b/inc/theme-init.php index fd8c33a..21fdb7f 100644 --- a/inc/theme-init.php +++ b/inc/theme-init.php @@ -15,4 +15,9 @@ function wp_theme_frontend_assets() { wp_enqueue_script('wp-theme-frontend-js', WP_THEME_URI . '/assets/css/frontend' . $build_prefix . '.css', [], WP_THEME_VERSION); } -add_action('wp_enqueue_scripts', 'wp_theme_frontend_assets'); +add_action('wp_enqueue_scripts', 'wp_theme_frontend_assets', 50); + +function wp_theme_setup_theme() { + load_child_theme_textdomain('wp-theme', get_stylesheet_directory() . '/languages'); +} +add_action('after_setup_theme', 'wp_theme_setup_theme'); diff --git a/index.php b/index.php deleted file mode 100644 index 289fce6..0000000 --- a/index.php +++ /dev/null @@ -1,9 +0,0 @@ - { +export default (el) => { const update = () => { if (getScrollTop() > OFFSET) { addClass(VISIBLE_CLASS, el) @@ -13,11 +13,15 @@ export default el => { } } - on('click', e => { - e.preventDefault() + on( + 'click', + (e) => { + e.preventDefault() - window.scrollTo(0, 0) - }, el) + window.scrollTo(0, 0) + }, + el + ) on('load', throttle(update, 300), window) } diff --git a/style.css b/style.css index 25384cf..19d6904 100644 --- a/style.css +++ b/style.css @@ -1,7 +1,8 @@ /** -Theme Name: CT Torus +Theme Name: WP Theme Author: Code Tot JSC Author URI: https://codetot.com -Text Domain: ct-torus +Text Domain: wp-theme +Template: ct-bones Version: 0.0.1 */