Function for widget titles

You can modify your filter function to add the condition: function html_widget_title( $title ) { if ( ” != $title ) { $output=”<img src=”https://wordpress.stackexchange.com/images/title_”.$title.’.png” alt=”‘.$title.'” title=”‘.$title.'”/>’; return $output; } else { return $title; } } add_filter( ‘widget_title’, ‘html_widget_title’ );

My own theme’s custom widget areas are not working

I fixed your functions.php code: <?php add_theme_support(‘post-thumbnails’); add_theme_support(‘menus’); /** * Enqueue scripts * * @param string $handle Script name * @param string $src Script url * @param array $deps (optional) Array of script names on which this script depends * @param string|bool $ver (optional) Script version (used for cache busting), set to null to disable … Read more

Widget Registration Problem

SOLVED this is maybe silly mistake. I forget to create new parent construct to my new widget so it still use parent construct from other widget