Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress From Bootstrap to WordPress Create Bootstrap Styled Theme Templates Adding Widget Areas to the Front Page

Joanne Achin
PLUS
Joanne Achin
Courses Plus Student 1,138 Points

Is the text within the Widget area unsearchable?

Within my widget on my static page, I have an image named "bug.jpg" which is an attachment. I also have text beneath the image that says "Bug"

When I search for "bug", the default Wordpress search option finds neither. Search Everything plugin found the image (bug.jpg) because I have it searching attachments, but it didn't find the text beneath the image.

What am I doing wrong? Thanks in advance.

2 Answers

Zac Gordon
STAFF
Zac Gordon
Treehouse Guest Teacher

Hi,

No, widget content is not in search. It only searches content saved as a page, post or custom post type.

Part of the reason is that you can't easily pull in a widget to display on a search results page or link from a search results page to an actual widget in the same way you can link to a post or page.

I looked around a bit and didn't see a quick solution or plugin that would allow for this functionality.

Joanne Achin
PLUS
Joanne Achin
Courses Plus Student 1,138 Points

Thanks for your help.

I was told that a custom Google search would be able to index and display results from widgets (this wasn't verified, but I'll take his word on it), but because we aren't indexing this particular site with Google, that solution didn't help me.

What we ended up doing was using a third party open source crawler that we customized for our purposes. It works great.