Class ‘WP_Widget’ not found

You should never work on core files which are inside wp-admin and wp-includes folder. You’ll be just working on wp-content folder. If you’re developing a plugin, you can directly put the code in your main plugin file or you can put the file inside of your plugin folder and include that file in the plugins … Read more

How to add a class to a link in text editor

You can use third party free WordPress plugin “Extend Link“. You can activate this plugin and add extend link as shown in below screenshot. Now when you click on “Extend Link”, you will see the popup similar to default link popup but with an additional option to add IDs, Class and Rel. https://wordpress.org/plugins/extend-link/ Please let … Read more

WordPress tag cloud add more links

Yes, you can. WP_Widget_Tag_Cloud widget uses wp_tag_cloud to generate the tag cloud. And inside that function and at the end of that function you can find this: /** * Filters the tag cloud output. * * @since 2.3.0 * * @param string $return HTML output of the tag cloud. * @param array $args An array … Read more

gutenberg widget outputting paragraph marks

Does anyone have any idea what is causing the extra paragraph marks before and after? The Shortcode block performs wpautop() on the content (in the block) before the shortcode is parsed (see source on GitHub), i.e. wpautop( ‘[show-test]’ ) in your case, which then returns <p>[show-test]</p> and then outputs <p><div>hi there.</div></p> after the shortcode is … Read more