Remove Widget Titles - Version 1.0

Version Description

(23 November 2011) = * Initial Release

Download this release

Release Info

Developer StephenCronin
Plugin Icon wp plugin Remove Widget Titles
Version 1.0
Comparing to
See all releases

Version 1.0

Files changed (2) hide show
  1. readme.txt +45 -0
  2. remove-widget-titles.php +39 -0
readme.txt ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ === Plugin Name ===
2
+ Contributors: StephenCronin
3
+ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=sjc@scratch99.com&currency_code=&amount=&return=&item_name=WP-RemoveWidgetTitles
4
+ Tags: widget, widget titles, hide, remove, usability
5
+ Requires at least: 2.6.0
6
+ Tested up to: 4.8
7
+ Stable tag: 1.0
8
+ Removes the title from any widget that has a title starting with the "!" character.
9
+
10
+ == Description ==
11
+ The [Remove Widget Titles](http://scratch99.com/products/remove-widget-titles/) plugin removes the title from any widget that has a title starting with the "!" character.
12
+
13
+ = Why Use It? =
14
+ This allows you to give widgets a title in the backend for convenience - so you can quickly see which widget is which, rather than having to open them to work out what they are for - without having to show the title on the front end.
15
+
16
+ = How To Use (once plugin is installed) =
17
+ If you have a widget for which you do not want the title to appear on the front end of your site, simply add the "!" character to the start of the widget title (in Appearance -> Widgets).
18
+
19
+ = Compatibility =
20
+ * This plugin requires WordPress 2.6 or above.
21
+ * I am not currently aware of any compatibility issues with any other WordPress plugins.
22
+
23
+ = Similar Plugins =
24
+ There is another plugin called [Hide Widget Title](http://wordpress.org/extend/plugins/hide-widget-title/), but that leaves the widget title in the page source and hides it using CSS (adding another http request which slows load time slightly). Remove Widget Titles actually removes the widget title from the HTML. The plugin is only 7 lines of code, so it is extremely light and has minimal impact on performance.
25
+
26
+ = Support =
27
+ This plugin is officially not supported (due to my time constraints), but if you leave a comment on the plugin's home page or [contact me](http://www.scratch99.com/contact/), I'll try to help if I can.
28
+
29
+ = Disclaimer =
30
+ This plugin is released under the [GPL licence](http://www.gnu.org/copyleft/gpl.html). I do not accept any responsibility for any damages or losses, direct or indirect, that may arise from using the plugin or these instructions. This software is provided as is, with absolutely no warranty. Please refer to the full version of the GPL license for more information.
31
+
32
+ = Acknowledgements =
33
+ This plugin was originally written for [QPS Media](http://twitter.com/#!/qpsmedia), who have allowed me to release it to the WordPress community and maintain ownership of the plugin.
34
+
35
+ == Installation ==
36
+ 1. Download the plugin file and unzip it.
37
+ 1. Upload the `remove-widget-titles` folder to the `wp-content/plugins/` folder.
38
+ 1. Activate the Remove Widget Titles plugin within WordPress.
39
+
40
+ Alternatively, you can install the plugin automatically through the WordPress Admin interface by going to Plugins -> Add New and searching for Remove Widget Titles.
41
+
42
+ == Changelog ==
43
+
44
+ = 1.0 (23 November 2011) =
45
+ * Initial Release
remove-widget-titles.php ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ Plugin Name: Remove Widget Titles
4
+ Plugin URI: http://scratch99.com/wordpress/plugins/remove-widget-titles/
5
+ Description: Removes the title from any widget that has a title starting with the "!" character.
6
+ Version: 1.0
7
+ Date: 23 November 2011
8
+ Author: Stephen Cronin
9
+ Author URI: http://www.scratch99.com/
10
+
11
+ Copyright 2011 Stephen Cronin (email: sjc@scratch99.com)
12
+
13
+ This program is free software; you can redistribute it and/or modify
14
+ it under the terms of the GNU General Public License as published by
15
+ the Free Software Foundation; either version 2 of the License, or
16
+ (at your option) any later version.
17
+
18
+ This program is distributed in the hope that it will be useful,
19
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
20
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21
+ GNU General Public License for more details.
22
+
23
+ You should have received a copy of the GNU General Public License
24
+ along with this program; if not, write to the Free Software
25
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26
+ */
27
+
28
+ // Add the filter and function, returning the widget title only if the first character is not "!"
29
+ add_filter( 'widget_title', 'remove_widget_title' );
30
+ function remove_widget_title( $widget_title ) {
31
+ if ( substr ( $widget_title, 0, 1 ) == '!' )
32
+ return;
33
+ else
34
+ return ( $widget_title );
35
+ }
36
+
37
+ // What, you were expecting more?
38
+
39
+ ?>