-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tweak register & enqueue and some code cleanup [TMZ-61] #38
Conversation
…title # Conflicts: # modules/template-parts/classes/render/widget-header-render.php # modules/template-parts/scss/breakpoints.scss # modules/template-parts/scss/variables.scss # modules/template-parts/widgets/header.php
…title # Conflicts: # modules/template-parts/scss/hello-plus-header.scss
use wp native function for site logo / title/ url
# Conflicts: # modules/template-parts/assets/scss/hello-plus-header.scss # modules/template-parts/classes/render/widget-header-render.php # modules/template-parts/widgets/header.php
# Conflicts: # modules/template-parts/module.php # webpack.config.js
modules/template-parts/module.php
Outdated
@@ -86,7 +93,9 @@ public static function is_active(): bool { | |||
*/ | |||
protected function register_hooks(): void { | |||
parent::register_hooks(); | |||
add_action( 'wp_enqueue_scripts', [ $this, 'enqueue' ] ); | |||
// add_action( 'wp_enqueue_scripts', [ $this, 'enqueue' ] ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nuritsha can we remove this since it's commented out?
modules/template-parts/module.php
Outdated
wp_enqueue_style( 'hello-plus-header' ); | ||
wp_enqueue_style( 'hello-plus-footer' ); | ||
wp_enqueue_script( 'hello-plus-header' ); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
} | |
} | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding space between function
No description provided.