Title: Hardcoding Widget
Last modified: August 21, 2016

---

# Hardcoding Widget

 *  Resolved [EarlSnappy](https://wordpress.org/support/users/earlsnappy/)
 * (@earlsnappy)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/hardcoding-widget/)
 * Hi,
    Is there a way of hardcoding the widget into a template file?
 * i.e. I want to create a new index-newsletter.php that copies the format of index.
   php, but has the widget in it on the right sidebar,
 * Any help much appreciated, Earl
 * [http://wordpress.org/extend/plugins/newsletter/](http://wordpress.org/extend/plugins/newsletter/)

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

 *  Plugin Author [Stefano Lissa](https://wordpress.org/support/users/satollo/)
 * (@satollo)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/hardcoding-widget/#post-3646589)
 * Copy the generated witdget code or the form code you find on subscription panel/
   forms field (and adapt it).
 * Stefano.
 *  Thread Starter [EarlSnappy](https://wordpress.org/support/users/earlsnappy/)
 * (@earlsnappy)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/hardcoding-widget/#post-3646857)
 * Hi Stefano,
 * Thanks very much for that I succeeded in getting the widget into my custom sidebar,
   but I can’t get the css format working for it:
 * I want the form on the [about us page](http://www.cacec.org/about-us/) top look
   like the form on the [homepage](http://www.cacec.org/). The reason I don’t just
   use the wordpress widget system is I don’t want the widget on the homepage.
 * I tried adding the css from widget-neutral.css to my childtheme css, and added
   the button to the folder, but it didn’t really work out,
 * Any suggestions (thanks again for your previous help too), Earl
 *  Thread Starter [EarlSnappy](https://wordpress.org/support/users/earlsnappy/)
 * (@earlsnappy)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/hardcoding-widget/#post-3646858)
 * Hi stephano, my friend doesn’t want the widget anymore, but thanks very much 
   for your help, it helped my learning curve anyway, Earl

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

The topic ‘Hardcoding Widget’ is closed to new replies.

 * ![](https://ps.w.org/newsletter/assets/icon-256x256.png?rev=1052028)
 * [Newsletter - Send awesome emails from WordPress](https://wordpress.org/plugins/newsletter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/newsletter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/newsletter/)
 * [Active Topics](https://wordpress.org/support/plugin/newsletter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/newsletter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/newsletter/reviews/)

## Tags

 * [hardcode](https://wordpress.org/support/topic-tag/hardcode/)
 * [widget](https://wordpress.org/support/topic-tag/widget/)

 * 3 replies
 * 2 participants
 * Last reply from: [EarlSnappy](https://wordpress.org/support/users/earlsnappy/)
 * Last activity: [13 years, 1 month ago](https://wordpress.org/support/topic/hardcoding-widget/#post-3646858)
 * Status: resolved