Title: Multiple text boxes in content area
Last modified: August 20, 2016

---

# Multiple text boxes in content area

 *  [Ichabod2](https://wordpress.org/support/users/ichabod2/)
 * (@ichabod2)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/multiple-text-boxes-in-content-area/)
 * Sometimes I think I am catching onto WP and at other times I feel like a blithering
   idiot; right now I feel like the latter.
    I am trying to create an alternate 
   front page for a customer of mine that sells a variety of products, some seasonal.
   The Page would have an introductory message at the top about the current season.
   This would be created in the editor. Below this would be several boxes containing
   a picture of the product and some promotional text about the product. These boxes
   may be the entire width of the content area, or they could be two-up or three-
   up. Of course, it is important that once the site is finished, the customer can
   edit images and text within the boxes, or change the number and arrangement of
   the boxes (if possible). I have created a new template for this.
 * But I am totally confused as to the best way to proceed. Would it work to create
   multiple divs for the boxes (including nested divs for images) and float them?
   How would the customer be able to edit these boxes and text. Would I need a loop
   for each div?
 * Or, should I create sidebars to go inside each div and wigetize them so I can
   use the Text and Image Widgets? Would styling the various divs cascade to the
   Text Widget?
 * Or, is there another, better approach.
 * Can anyone give me a little guideance and insight?

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

 *  [Pioneer Web Design](https://wordpress.org/support/users/swansonphotos/)
 * (@swansonphotos)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/multiple-text-boxes-in-content-area/#post-3163668)
 * You need to create a [Page Template](http://codex.wordpress.org/Pages#Creating_Your_Own_Page_Templates).
   Once created (with your personalized PHP and/or HTML) assign the Template to 
   a Page (note: one can create a blank Page for this), then make that Page your
   Front Page…
 *  [Funkywebsites](https://wordpress.org/support/users/funkywebsites/)
 * (@funkywebsites)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/multiple-text-boxes-in-content-area/#post-3163711)
 * you could create a couple of extra widgets and add the code to new template page
 * Create a Widget
 *     ```
       register_sidebar(array(
                   'name' => 'Homepage Widget Area 1',
                   'id' => 'homepageWG_1',
                   'description' => 'Homepage #1 widget area',
                   'before_widget' => '<ul class="widget-container"><li id="%1$s" class="widget %2$s">',
                   'after_widget' => '</li></ul>',
                   'before_title' => '<h3 class="widgettitle">',
                   'after_title' => '</h3>'
               ));
   
       $theme->add_hook('footer_6', 'footer_6_default_widgets');
       ```
   
 * in the functions.php file on your theme 🙂
 * this then will appear in the widgets section of wordpress
 * then you will have to edit your template file and include
 *     ```
       <div class="homepage-widget-box">
                       <?php
                           if(!dynamic_sidebar('homepageWG_1')) {
                               $theme->hook('homepageWG_1');
                           }
                       ?>
                   </div>
       ```
   
 * That should do the trick 🙂

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

The topic ‘Multiple text boxes in content area’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 3 participants
 * Last reply from: [Funkywebsites](https://wordpress.org/support/users/funkywebsites/)
 * Last activity: [13 years, 6 months ago](https://wordpress.org/support/topic/multiple-text-boxes-in-content-area/#post-3163711)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
