@dimikjones and @vladff
I have read through this post: https://athemes.com/forums/search/unregister_widget/ several times. I went to the end and followed these instructions:
…add to your child theme functions.php file:
//Unregister the services widget and register it from the child theme
function moesia_child_widgets() {
unregister_widget( 'Moesia_Services' );
register_widget( 'Moesia_Products' );
}
add_action( 'widgets_init', 'moesia_child_widgets', 99 );
//Load the new widget
require get_stylesheet_directory() . "/widgets/fp-products.php";
Then I created a widgets folder in your child theme, copy fp-services.php in it and change its name to fp-products.php;
deleted this line: $content_html .= '<div class="service-desc wow fadeInUp">' . get_the_content() . '</div>';
And lastly went back into my new fp-products.php file and switched the word services to products the first two rows for Moesia_Service Change services to products in both of them.
Then I get this at the top of my site: //Unregister the services widget and register it from the child theme function moesia_child_widgets() { unregister_widget( ‘Moesia_Services’ ); register_widget( ‘Moesia_Products’ ); } add_action( ‘widgets_init’, ‘moesia_child_widgets’, 99 ); //Load the new widget require get_stylesheet_directory() . “/widgets/fp-products.php”;
Warning: session_start(): Cannot send session cache limiter – headers already sent (output started at /home/jesgom6/thetipsybrushchicago.com/wp-content/themes/Moesia-CHILD/functions.php:8) in /home/jesgom6/thetipsybrushchicago.com/wp-content/plugins/ninja-forms/ninja-forms.php on line 653
What did I do wrong?