Skip to content

Instantly share code, notes, and snippets.

@rickrduncan
Last active December 20, 2015 06:48
Show Gist options
  • Save rickrduncan/6088079 to your computer and use it in GitHub Desktop.
Save rickrduncan/6088079 to your computer and use it in GitHub Desktop.
Method 4: Customize WordPress widget title. Full tutorial: http://www.rvamedia.com/wordpress/customize-wordpress-widget-title
<?php
//-> Do NOT include the opening php tag
// Step 2: Place code below into your theme's functions.php file
if ( include( 'custom_widgets.php' ) ){
add_action( "widgets_init", "load_custom_widgets" );
}
function load_custom_widgets() {
unregister_widget( "WP_Widget_Text" );
register_widget( "WP_Widget_Text_Custom" );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment