You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hello to everybody
first of all thank you for this awesome project.
i just want to tell you there is a thing. if you want use it to your custom theme the styles and scripts will not load.
`/**
* Enqueue scripts and styles
*/
public function setup_admin_scripts() {
wp_register_script( 'cmb-tabs', plugins_url( 'js/tabs.js', FILE ), array( 'jquery' ), self::VERSION, true );
wp_enqueue_script( 'cmb-tabs' );
it will load files from plugins_url() but if you want use it in your theme you have to use this code :
`/**
* Enqueue scripts and styles
*/
public function setup_admin_scripts() {
wp_register_script( 'cmb-tabs', get_template_directory_uri() . '/cmb2-tabs-master/js/tabs.js', array( 'jquery' ), self::VERSION, true );
wp_enqueue_script( 'cmb-tabs' );
hello to everybody
first of all thank you for this awesome project.
i just want to tell you there is a thing. if you want use it to your custom theme the styles and scripts will not load.
`/**
* Enqueue scripts and styles
*/
public function setup_admin_scripts() {
wp_register_script( 'cmb-tabs', plugins_url( 'js/tabs.js', FILE ), array( 'jquery' ), self::VERSION, true );
wp_enqueue_script( 'cmb-tabs' );
it will load files from plugins_url() but if you want use it in your theme you have to use this code :
`/**
* Enqueue scripts and styles
*/
public function setup_admin_scripts() {
wp_register_script( 'cmb-tabs', get_template_directory_uri() . '/cmb2-tabs-master/js/tabs.js', array( 'jquery' ), self::VERSION, true );
wp_enqueue_script( 'cmb-tabs' );
thanks a lot
The text was updated successfully, but these errors were encountered: