Adding Code into Theme Customizer Header

You use the customize_controls_enqueue_scripts action hook for that. Then you enqueue script as usual. Like this: function wpse256911_customizer_enqueue() { wp_enqueue_script( ‘my-customizer’, get_stylesheet_directory_uri() . ‘/js/my-customizer.js’, array( ‘jquery’, ‘customize-controls’ ) ); } add_action( ‘customize_controls_enqueue_scripts’, ‘wpse256911_customizer_enqueue’ );

How to add width & height (resolution) on wordpress function?

You may be looking for WP_Customize_Cropped_Image_Control which has width and height parameters (along with flex_width and flex_height). This will then present you with the image dimensions when you select an image in the Customizer. For example, refer to how the Custom Logo control is registered in core: $wp_customize->add_control( new WP_Customize_Cropped_Image_Control( $wp_customize, ‘custom_logo’, array( ‘label’ => … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)