theme customizer issue

I have rewrote the code you given with minor changes. Please try this: add_action(‘customize_register’, ‘add_footer_copyright’); function add_footer_copyright($wp_customize) { $wp_customize->add_setting( ‘footer_copyright’, array( ‘default’ => ‘Copyright © 201 – Designed By: Designer Name’, ‘transport’ => ‘postMessage’, ‘capability’ => ‘edit_theme_options’, ) ); $wp_customize->add_control( ‘footer_copyright’, array( ‘label’ => ‘Footer Copyright’, ‘section’ => ‘title_tagline’, ‘settings’ => ‘footer_copyright’, ‘type’ => ‘text’ … Read more

Customiser sections not being displayed with `active_callback`

The is_single template tag takes an optional parameter and therefore does not work for an active callback. Try this instead: function callback_single() { return is_single(); } $wp_customize->add_section(‘section_template_single’ , array( ‘title’ => __(‘Single Links’, $this->text_domain), ‘priority’ => 10, ‘panel’ => ‘panel_templates’, ‘active_callback’ => ‘callback_single’ )); You also have “wp_customise” instead of “wp_customize.” Source: http://ottopress.com/2015/whats-new-with-the-customizer/

How to add width & height (resolution) on wordpress function?

You may be looking for WP_Customize_Cropped_Image_Control which has width and height parameters (along with flex_width and flex_height). This will then present you with the image dimensions when you select an image in the Customizer. For example, refer to how the Custom Logo control is registered in core: $wp_customize->add_control( new WP_Customize_Cropped_Image_Control( $wp_customize, ‘custom_logo’, array( ‘label’ => … Read more

Place a message in theme customizer sidebar

To do what you ask there are two solutions that would be optimal. Solution #1 The simplest way would would be to use the WordPress customizer’s notification API – as this API was specifically designed to add messages to the customizer in a location that users can expect to see notifications from their theme, uniformly. … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)