145 posts
  • Has been part of the Envato Community for over 6 years
  • Has referred 50+ members
  • Has sold $1,000+ on Envato Market
  • Has collected 1+ items on Envato Market
+3 more
JJenZz says

This time it’s a widget question…

I am overwriting the markup generated by a few default widgets (such as search and recent posts) so I have unregistered them and then reregistered them with my new markup in functions.php. However, this now means the widgets no longer have a “widget-description” within the widgets list of WordPress.

So my question is… Is there a way I can add widget descriptions to my custom widgets without putting them into separate php files that need to be stored in the ‘plugins’ directory and enabled in wp? I’d like to be able to keep it all in functions.php if possible!

145 posts
  • Has been part of the Envato Community for over 6 years
  • Has referred 50+ members
  • Has sold $1,000+ on Envato Market
  • Has collected 1+ items on Envato Market
+3 more
JJenZz says

From the response (or lack there of) I’m assuming this probably isn’t possible… Sad face lol

Never mind… I will have to do without the description I guess!

27 posts
  • Has been part of the Envato Community for over 6 years
  • Has sold $100+ on Envato Market
  • Has collected 1+ items on Envato Market
postream says

Hi Jenna! I’ve a solution. Look at this free theme: http://code.google.com/p/sandbox-theme/downloads/list It does exactly what you need. The widget description is specified when calling wp_register_sidebar_widget. Hope this help.

145 posts
  • Has been part of the Envato Community for over 6 years
  • Has referred 50+ members
  • Has sold $1,000+ on Envato Market
  • Has collected 1+ items on Envato Market
+3 more
JJenZz says

That’s perfect! Thank you ever so much :)

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by