Enter your keyword

Blog

How to Replace the Widget in Genesis or WordPress

Step 1: First You will place the Unregistered Widget code in your function.php file

<?php
function remove_Featured_widget() {
  unregister_widget('Featured_Post');
}
add_action( 'widgets_init', 'remove_Featured_widget' );
?>

Step 2: Include the new widget file or function in your function.php than place Register widget function :

function Child_Featured_register_widgets() {
  register_widget( 'Child_Featured_Post' );
}
add_action( 'widgets_init', 'Child_Featured_register_widgets' );

No Comments

Add your review

Your email address will not be published.

* Feilds are Required.