Title: Edit Template File
Last modified: September 1, 2016

---

# Edit Template File

 *  [AmandaEve](https://wordpress.org/support/users/amandaeve/)
 * (@amandaeve)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/edit-template-file/)
 * I am trying to add a section on my page ([dev.ntv.ca](http://dev.ntv.ca)) to 
   float right across from the Heading. but whenever I edit the template theme it
   moves the sidebar but doesn’t display the new content at all. What am I doing
   wrong?
 * css:
 *     ```
       .TilesArea {
           position: absolute;
           right: 0;
           top: 0;
           display: block;
           height: 125px;
           width: 125px;
       }
       ```
   
 * Template file:
 *     ```
       <div class="td-container">
               <div class="td-container-border">
                   <?php
                   switch ($loop_sidebar_position) {
                       default:
                           ?>
                           <div class="td-pb-row td-pagebuilder-sidebar-right">
                               <div class="td-pb-span8 td-main-content" role="main">
                                   <div class="td-ss-main-content">
                                       <?php
                                       if (have_posts()) {
                                       while ( have_posts() ) : the_post();
                                       ?>
                                       <div class="td-page-header td-pb-padding-side">
                                           <?php echo td_page_generator::get_page_breadcrumbs(get_the_title()); ?>
                                           <h1 class="entry-title td-page-title">
                                               <span><?php the_title() ?></span>
                                           </h1>
                                       </div><div class="TilesArea">Tile Here Please</div>
                                       <div class="td-pb-padding-side td-page-content">
                                           <?php
                                           the_content();
                                           endwhile;//end loop
                                           }
                                           ?>
                                       </div>
                                   </div>
                               </div>
                               <div class="td-pb-span4 td-main-sidebar" role="complementary">
                                   <div class="td-ss-main-sidebar">
                                       <?php get_sidebar(); ?>
                                   </div>
                               </div>
                           </div>
                           <?php
                           break;
   
                       case 'sidebar_left':
                           ?>
       ```
   

Viewing 1 replies (of 1 total)

 *  [RossMitchell](https://wordpress.org/support/users/rossmitchell/)
 * (@rossmitchell)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/edit-template-file/#post-7645814)
 * Having visited your website, and view your page source using firebug, I find:
 *     ```
       <div class="td-container">
         <div class="td-container-border">
           <div class="td-main-content td-pagebuilder-sidebar-full" role="main">
             <div class="td-ss-main-content">
       ```
   
 * So it is clear that the template part with the class “TilesArea” is not being
   activated. Presumably the “$loop_sidebar_position” is set wrong, sort this out
   and you can progress to the next step.

Viewing 1 replies (of 1 total)

The topic ‘Edit Template File’ is closed to new replies.

## Tags

 * [edit](https://wordpress.org/support/topic-tag/edit/)
 * [float](https://wordpress.org/support/topic-tag/float/)
 * [template](https://wordpress.org/support/topic-tag/template/)

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 1 reply
 * 2 participants
 * Last reply from: [RossMitchell](https://wordpress.org/support/users/rossmitchell/)
 * Last activity: [9 years, 9 months ago](https://wordpress.org/support/topic/edit-template-file/#post-7645814)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
