receive warnings in customizer

  • In Progress
    Posted in: Highend WP Theme  
  • Customer
    clairemuzal
    September 30, 2014 at 6:56 pm #13073

    When I click on CUSTOMIZE in my Highend theme dashboard – I get the following warnings:
    Warning: Creating default object from empty value in /home2/fordbolt/public_html/wp-content/themes/HighendWP/admin/theme-customizer.php on line 15

    Warning: Creating default object from empty value in /home2/fordbolt/public_html/wp-content/themes/HighendWP/admin/theme-customizer.php on line 16

    Warning: Creating default object from empty value in /home2/fordbolt/public_html/wp-content/themes/HighendWP/admin/theme-customizer.php on line 17

    Warning: Creating default object from empty value in /home2/fordbolt/public_html/wp-content/themes/HighendWP/admin/theme-customizer.php on line 18

    **AND BELOW THE LINE IS THE REFERRED TO FILE (you can readily see which 4 lines are 15-18) I don’t understand what is going on. I set the color manager to color customizer in Highend options, and filled in my title, tagline colors and background.
    __________________________________________________________________________________________________
    <?php
    /**
    * @package WordPress
    * @subpackage Highend
    */
    ?>
    <?php

    function hb_register_customizer( $wp_customize ) {

    /* CHANGE TRANSPORT METHOD
    ================================================== */

    $wp_customize->get_setting( ‘blogname’ )->transport = ‘postMessage’;
    $wp_customize->get_setting( ‘blogdescription’ )->transport = ‘postMessage’;
    $wp_customize->get_setting( ‘header_textcolor’ )->transport = ‘postMessage’;
    $wp_customize->get_setting( ‘background_color’ )->transport = ‘postMessage’;

    /* FOCUS COLOR SECTION
    ================================================== */
    $wp_customize->add_section( ‘hb_focus_color_section’ , array(
    ‘title’ => __(‘Color – Accent’,’hbthemes’),
    ‘priority’ => 300,
    ‘description’ => null
    ));

    $wp_customize->add_setting( ‘hb_focus_color_setting’ , array(
    ‘default’ => ‘#1dc6df’,
    ‘type’ => ‘theme_mod’,
    ‘capability’ => ‘edit_theme_options’,
    ‘transport’ => ‘postMessage’
    ));

    $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, ‘hb_focus_color_setting’, array(
    ‘label’ => __( ‘Accent Color’, ‘mytheme’ ),
    ‘section’ => ‘hb_focus_color_section’
    )));

    Sorry, this forum is for verified users only. Please Login or Register to continue

Comments are closed.