Title: Make title optional
Last modified: August 20, 2016

---

# Make title optional

 *  Resolved [Colm Doyle](https://wordpress.org/support/users/colmdoyle/)
 * (@colmdoyle)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/make-title-optional-1/)
 * Loving the plugin.
 * Two suggestions based on your latest upload.
 * Having a title as an option is nice, but if the site chooses to not have one,
   you’re currently rendering an empty `div`, which leaves some awkward looking 
   whitespace. It might be no harm to check the inputted title before rendering?
 * This is what I’ve hacked in – [https://gist.github.com/4142002](https://gist.github.com/4142002).
 * Also, and this could just be my theme, but your `$before_widget` at the very 
   start of widget.php is doing this crazy nested widget thing. Removing that echo
   statement seems to clear it, but just thought I’d give you a heads up.
 * [http://cl.ly/image/3P0k2Y0j3W3W](http://cl.ly/image/3P0k2Y0j3W3W)
 * [http://wordpress.org/extend/plugins/content-headings-tree/](http://wordpress.org/extend/plugins/content-headings-tree/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [Colm Doyle](https://wordpress.org/support/users/colmdoyle/)
 * (@colmdoyle)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/make-title-optional-1/#post-3216587)
 * Ah, I think I’ve figured out the weird nesting thing anyway.
 * You’re calling `$before_widget` and `$after_widget` in the `widget` function 
   of plugin.php and inside views/widget.php.
 * removing one of the call sites solves it.
 *  Plugin Author [Konstantinos Kouratoras](https://wordpress.org/support/users/kouratoras/)
 * (@kouratoras)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/make-title-optional-1/#post-3216647)
 * Thank you very much for your feedback! Both issues solved and released an update
   of my plugin. Go get it! 🙂
 *  Thread Starter [Colm Doyle](https://wordpress.org/support/users/colmdoyle/)
 * (@colmdoyle)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/make-title-optional-1/#post-3216652)
 * Nice, thanks!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Make title optional’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/content-headings-tree_83a449.svg)
 * [Content Headings Tree](https://wordpress.org/plugins/content-headings-tree/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/content-headings-tree/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/content-headings-tree/)
 * [Active Topics](https://wordpress.org/support/plugin/content-headings-tree/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/content-headings-tree/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/content-headings-tree/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Colm Doyle](https://wordpress.org/support/users/colmdoyle/)
 * Last activity: [13 years, 5 months ago](https://wordpress.org/support/topic/make-title-optional-1/#post-3216652)
 * Status: resolved