o2
o2 copied to clipboard
Blank page after add color palette to customizer.php
Hello, first, thanks for this work, it seems really useful foe what I need to do. I'm trying to use the color-palette control to a theme. Right now I'm testing on understrap theme.
I downloaded the code and copy it inside inc/ folder in a o2 folder. Then I added:
define( 'O2_DIRECTORY', get_template_directory() . '/inc/o2/' ); define( 'O2_DIRECTORY_URI', get_template_directory_uri() . '/inc/o2/' ); require get_template_directory() . '/inc/o2/controls/color-palette/color-palette-control.php';
to understrap/functions.php and then the code at customizer.php
When I try to access to the customizer, I see a blank page. If I change:
new O2_Customizer_Color_Palette_Control
with WP_Customize_Control
as any other control that this theme has, I can see the customizer, but color-palette options didn't show.
It's clear that I'm doing something wrong, but I can't see what is. Can you help me?
@deimidis Sorry, didn't get an email for this. Have you followed the documentation properly https://github.com/HardeepAsrani/o2/blob/development/controls/color-palette/README.md?
If yes then can you send me a zip of your theme or your debug log?
I tried to follow those instructions :)
Which is the best way to send you the zip file?
@deimidis you can attach the files in issue