o2 icon indicating copy to clipboard operation
o2 copied to clipboard

Blank page after add color palette to customizer.php

Open deimidis opened this issue 6 years ago • 4 comments

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_Controlas 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 avatar Sep 25 '18 01:09 deimidis

@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?

HardeepAsrani avatar Sep 30 '18 20:09 HardeepAsrani

I tried to follow those instructions :)

Which is the best way to send you the zip file?

deimidis avatar Sep 30 '18 22:09 deimidis

@deimidis you can attach the files in issue

ajitbohra avatar Oct 01 '18 11:10 ajitbohra

understrap.zip

Here it is :)

deimidis avatar Oct 01 '18 12:10 deimidis