Sorry in advance if my question is stupid and I know it's probably an easy fix, but I've been trying to make it work for hours and I just don't know what I'm doing wrong.
I've added the ColorAlpha.php, WPTRTColorAlphaControl.js, WPTRTColorAlphaForm.js and index.js files to the inc file in my theme.
Sorry in advance if my question is stupid and I know it's probably an easy fix, but I've been trying to make it work for hours and I just don't know what I'm doing wrong.
I've added the ColorAlpha.php, WPTRTColorAlphaControl.js, WPTRTColorAlphaForm.js and index.js files to the inc file in my theme.
I've added this in functions.php:
add_action( 'customize_register', function( $wp_customize ) { $wp_customize->register_control_type( '\WPTRT\Customize\Control\ColorAlpha' ); } );
I've added these codes in customizer.php (also in inc, if it matters):
And when I try to check the customizer, I get a critical error message:
Uncaught Error: Class 'WPTRT\Customize\Control\ColorAlpha' not found in /wp-content/themes/theme-name/inc/customizer.php:17