Closed jainnidhi closed 6 years ago
Make sure you've specified a default value when setting up your control. https://github.com/maddisondesigns/customizer-custom-controls/blob/master/inc/customizer.php#L746
Also, the default value should look something like this - https://github.com/maddisondesigns/customizer-custom-controls/blob/master/functions.php#L215
I presume you've been able to resolve your issue so I'm going to close this.
Hello,
I am using your google font custom control and getting an error given below:
Trying to get property 'font' of non-object in line
$this->fontListIndex = $this-> skyrocket_getFontIndex( $this->fontList, $this->fontValues->font );
Trying to get property 'category' of non-object in line
<input type="hidden" class="google-fonts-category" value="<?php echo $this->fontValues->category; ?>">
Could you please help me?
Thanks in advance!