Extending the WP_Widget_Text class

Think about it, why would WordPress do anything just because you have defined additional class? It’s not magic (neither magical magic or code driven magic). The text widget doesn’t appear simply because class exists. When WordPress loads it runs wp_widgets_init(), which executes register_widget(‘WP_Widget_Text’). So technically you cannot tell it to use different class. What you … Read more

Plugin translations not installed but… strings are translated!

Yes, Recent Tweets Widget is one of the many plugins which their translations are managed through translate.wordpress.org, and this means that upon installing the plugin (*remember, installing and activating are different), WordPress (on your site) will automatically download the plugin’s language pack (.po and .mo files) from translate.wordpress.org, and then store the translation files in … Read more

How to change text widget title h2 to h1

The before-title and after-title arguments passed to register_sidebar() need to use underscores: register_sidebar(array( “name” => “Home Consulatation”, “id” => “home_consult”, “before_widget” => “”, “after_widget” => “”, “before_title” => “”, “after_title” => “” )); If you use that the titles won’t have any tags. You need to provide them to the before_title and after_title arguments, like … Read more

wordpress widget textbox in the sidebar

check your sidebar.php and functions.php of the theme, the sidebar define the markup outside the widget; the function register_sidebar() defines the markup before content of the widgets; this markup you must change. See the codex for this function: codex register_sidebar() Edit Specifically, you need to look at the before_widget and after_widget parameters of the register_sidebar() … Read more

How to allow PHP In WordPress text widget

Instead you should consider using a shortcode. This is exactly the problem that shortcodes try to solve. By default, Widgets don’t process shortcodes, but that can be easily changed. add_filter( ‘widget_text’, ‘do_shortcode’ ); This would allow you to use any shortcodes in the Widget text area. Next would be to get the PHP code you … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)