Title: Where do you paste code to widgetize your theme?
Last modified: August 30, 2016

---

# Where do you paste code to widgetize your theme?

 *  Resolved [gasfaqs](https://wordpress.org/support/users/gasfaqs/)
 * (@gasfaqs)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/where-do-you-paste-code-to-widgetize-your-theme/)
 * I’m new to wordpress and anything beyond using email. I’m trying to place a widget
   area in my theme. The instructions using wp cwa say to cut and past the code 
   into my theme. But, where/how do I paste it in my theme?
    thanks!
 * [https://wordpress.org/plugins/wp-custom-widget-area/](https://wordpress.org/plugins/wp-custom-widget-area/)

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

 *  Plugin Author [krozero](https://wordpress.org/support/users/krozero199/)
 * (@krozero199)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/where-do-you-paste-code-to-widgetize-your-theme/#post-6260079)
 * HI, it depends on your requirement. where do you really want to place it? sidebar,
   footer area or somewhere else ? if sidebar, paste it inside sidebar.php if somewhere
   else open the related file and paste it where you want to show it. hope this 
   helps. let me know if you need more help using it. thanks!
 *  Thread Starter [gasfaqs](https://wordpress.org/support/users/gasfaqs/)
 * (@gasfaqs)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/where-do-you-paste-code-to-widgetize-your-theme/#post-6260122)
 * Thanks for your reply. I’d like to place a widget area just below the title in
   my home page.
    Ive created a child theme and I installed the wp custom widget
   area plugin. where would I paste the code in my child theme if I wanted a widget
   area below the title? Thanks!
 *  Plugin Author [krozero](https://wordpress.org/support/users/krozero199/)
 * (@krozero199)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/where-do-you-paste-code-to-widgetize-your-theme/#post-6260153)
 * i’m not sure how your home page really look like. code location depends on how
   your theme looks like and how it was coded. can you share screenshot of your 
   homepage pointing where you want to add widget area? after that may be i can 
   help you place it in right location. thanks!
 *  Thread Starter [gasfaqs](https://wordpress.org/support/users/gasfaqs/)
 * (@gasfaqs)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/where-do-you-paste-code-to-widgetize-your-theme/#post-6260165)
 * I hope I did this right. The image code is below. my website is [http://www.gasfaqs.com](http://www.gasfaqs.com)
   in case the image doesn’t work.
 * [IMG]http://i59.tinypic.com/npjlgp.png[/IMG]
 * sorry, I don’t know how to point to the spot I want the widget area. I’d like
   it just below the tagline. I’m trying to add a “search bar” there. Hope that 
   helps.
    I’m using Oblique child theme. I’ve only added the code necessary to 
   create a child theme. I’ve added no other code. thanks for your help.
 *  Plugin Author [krozero](https://wordpress.org/support/users/krozero199/)
 * (@krozero199)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/where-do-you-paste-code-to-widgetize-your-theme/#post-6260192)
 * ok, so firstly copy the header.php from Oblique theme and drop it inside child
   theme. then open that header.php file and paste the code you get from plugin :..
   i.e <?php dynamic_sidebar( ‘header-widget’ ); ?> at line no: 52 . then add search
   widget for that area form dashboard Appearance > widgets. hope this solves your
   problems. 🙂 thanks!
 *  Thread Starter [gasfaqs](https://wordpress.org/support/users/gasfaqs/)
 * (@gasfaqs)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/where-do-you-paste-code-to-widgetize-your-theme/#post-6260199)
 * ok, so I did what you said and i’m not seeing any change to my site. I did notice
   that my widgets are not sure up the sidebar though. not sure if this is a related
   issue? heres a copy header.php line 52 after I added the code.
 *  <?php else : //Show only site title and description ?><dynamic_sidebar( ‘Header’);
   >
 * did i do something wrong?
 * thanks!
 *  Plugin Author [krozero](https://wordpress.org/support/users/krozero199/)
 * (@krozero199)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/where-do-you-paste-code-to-widgetize-your-theme/#post-6260210)
 * ok, please follow these steps.
    1. [http://screencast.com/t/jDl7NnTIllNH](http://screencast.com/t/jDl7NnTIllNH)
    2. [http://screencast.com/t/QuRAP2B0MH](http://screencast.com/t/QuRAP2B0MH)
    3. [http://screencast.com/t/AsNMv7Q5t](http://screencast.com/t/AsNMv7Q5t)
 * thanks!
 *  Plugin Author [krozero](https://wordpress.org/support/users/krozero199/)
 * (@krozero199)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/where-do-you-paste-code-to-widgetize-your-theme/#post-6260211)
 * plus check if your dynamic_sidebar( ‘Header’) match with one you get form plugin
   table after clicking “Get code” link. just copy and paste it. if you type it 
   your self recheck if there’s any mistake like (uppercase, lowercase) etc. tx!
 *  Thread Starter [gasfaqs](https://wordpress.org/support/users/gasfaqs/)
 * (@gasfaqs)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/where-do-you-paste-code-to-widgetize-your-theme/#post-6260219)
 * It worked! Thanks!
    In the future, how would I know which line to paste code 
   if I needed to create another widget area? If I wanted to move the search bar
   down on the page a little further below the tagline? Thanks for being patient
   with me.

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

The topic ‘Where do you paste code to widgetize your theme?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-custom-widget-area.svg)
 * [WP Custom Widget area](https://wordpress.org/plugins/wp-custom-widget-area/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-custom-widget-area/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-custom-widget-area/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-custom-widget-area/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-custom-widget-area/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-custom-widget-area/reviews/)

## Tags

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

 * 9 replies
 * 2 participants
 * Last reply from: [gasfaqs](https://wordpress.org/support/users/gasfaqs/)
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/where-do-you-paste-code-to-widgetize-your-theme/#post-6260219)
 * Status: resolved