Printer-friendly page

Embed an NCpedia search box into any Web site

Search box preview:


To embed an NCpedia search box into your school, library or personal site, copy and paste the code below into the page where you would like it. Search results will open in a new window or tab.

<script type="text/javascript" src=""></script> <div id="NCpediaSearchDiv"></div>

The widget has basic default styling but you are welcome to create new CSS rules on your site's stylesheets to alter its presentation.


If you embed the widget and want to be notified of any updates made to the script or code, please contact us. Just let us know you'd like NCpedia widget updates and we'll add you to our notification list.




why isnt there ANY ask a librarian in the top right-hand corner


Hi Kyla,

Thank you for visiting NCpedia and for sharing this comment.

NCpedia is developing a live chat/ask a librarian feature and will have it back online in a few weeks after the first of the new year.

If you need help in the meantime, please feel free to ask your question here in comments and we will get back to you with a business day.

Best wishes,

Kelly Agan, NC Government & Heritage Library

Add a comment

PLEASE NOTE: NCpedia provides the comments feature as a way for viewers to engage with the resources. Comments are not published until reviewed by NCpedia editors at the State Library of NC, and the editors reserve the right to not publish any comment submitted that is considered inappropriate for this resource. NCpedia will not publish personal contact information in comments, questions, or responses. If you would like a reply by email, note that some email servers, such as public school accounts, are blocked from accepting messages from outside email servers or domains. If you prefer not to leave an email address, check back at your NCpedia comment for a reply. Please allow one business day for replies from NCpedia. Complete guidelines are available at