Title: non-widget
Last modified: August 19, 2016

---

# non-widget

 *  [yoichi60](https://wordpress.org/support/users/yoichi60/)
 * (@yoichi60)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/non-widget/)
 * Could you show me the code to place chcounter in the sidebar for those who do
   not use widgets please.
 * Thanks.

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

 *  [K](https://wordpress.org/support/users/koelle/)
 * (@koelle)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/non-widget/#post-712289)
 * Hi,
 * I have done some upgrade to display chcounter statically without using widets.
   So first you have to upgrade to Version 2.0.1.
 * You can display chCounter with the following code
 *     ```
       <?php
       $chcounter_widget = new chCounterWidget();
       $chcounter_widget->display(array (
          'before_widget' => '<li id="chcounter" class="widget chCounterWidget_display">',
          'after_widget' => '</li>',
          'before_title' => '<h2 class="widgettitle">',
          'after_title' => '</h2>',
          'widget_title' => 'Visitor statistics',
       ));
       ?>
       ```
   
 * You can change the values of the array to your needs. Hope that helped. If you
   have any further questions, just post them here.
 *  [leemas](https://wordpress.org/support/users/leemas/)
 * (@leemas)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/non-widget/#post-712304)
 * problem soloved

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

The topic ‘non-widget’ is closed to new replies.

 * 2 replies
 * 3 participants
 * Last reply from: [leemas](https://wordpress.org/support/users/leemas/)
 * Last activity: [18 years, 2 months ago](https://wordpress.org/support/topic/non-widget/#post-712304)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
