Wednesday, 8 July 2015

Add Logo in Theme Customize Option in Wordpress

Hello reader's today we discuss about "Add logo in theme customize option" in wordpress. Open your function.php and paste the below code :-


/**
* Add logo in theme customize option
*/
add_action( 'customize_register', 'themename_customize_register' );
function themename_customize_register($wp_customize) {
$wp_customize->add_section( 'ignite_custom_logo', array(
'title' => 'Logo',
'description' => 'Display a custom logo?',
'priority' => 25,
) );
$wp_customize->add_setting( 'custom_logo', array(
'default' =>; '',
) );
 
 
- See full Blog at: Add Logo in Theme Customize Option in Wordpress


FindNerd is the right place to resolve PHP language problems. Here you can post PHP Questions and Answers.
If you have any query on PHP language, Post it at FindNerd's - PHP Developer Forum.
Hello reader's today we discuss about "Add logo in theme customize option" in wordpress. Open your function.php and paste the below code :-
  1. /**
  2. * Add logo in theme customize option
  3. */
  4. add_action( 'customize_register', 'themename_customize_register' );
  5. function themename_customize_register($wp_customize) {
  6. $wp_customize->add_section( 'ignite_custom_logo', array(
  7. 'title' => 'Logo',
  8. 'description' => 'Display a custom logo?',
  9. 'priority' => 25,
  10. ) );
  11. $wp_customize->add_setting( 'custom_logo', array(
  12. 'default' =>; '',
  13. ) );
- See more at: http://findnerd.com/list/view/Add-logo-in-theme-customize-option-in-wordpress/3364/#sthash.QJ5eQfOw.dpuf

No comments:

Post a Comment