Last active
December 20, 2015 06:48
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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