• 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)
  • 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.

    problem soloved

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘non-widget’ is closed to new replies.