Remove "Page" title from Page Widget
Figured I would post this for those who need it as I spent the past 30 minutes or so digging around. If you want to remove the title, since leaving it blank just results in the word "Page", on the Page Widget put the following in your html/css inserts:
Code:
div.widget-title h3, |
So why not just put a blank character in the title instead? Then the title is ' ' instead of null and the ' ' is displayed, but you can't see it so there is nothing in the title.
|
Your such a smarty pants. I never even thought to try that, but as usual it works.
|
This sucks, the point is, which smarty pants is missing, is that leaving the title with nothing in it still outputs a header tag in your source. Display none does the same. So both are shortcuts resulting in the same thing, ugly code which may or may not be punished by the SE's.
The solution is to not output anything for the title. I just dont know how to achieve it. |
Hi,
Check out default_widgets.php. It is located in the wp-includes folder. If not there try widgets.php. To remove the title find: (should be near the top, unless your theme modified the file) $title = apply_filters('widget_title', empty( $instance['title'] ) ? __( 'Pages' ) : $instance['title'], $instance, $this->id_base); The best way to remove it is just to add /* before it and */ Just copy and paste this, to make it real easy. /* $title = apply_filters('widget_title', empty( $instance['title'] ) ? __( 'Pages' ) : $instance['title'], $instance, $this->id_base); */ |
All times are GMT -6. The time now is 02:50 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.