• Im getting this error :
    Parse error: syntax error, unexpected ‘<‘ in /home/a3950032/public_html/wp-content/themes/freshnews/includes/sidebar-init.php on line 5

    Below is part of my sidebar-init.php file, it says on line 5, yet i can seem to find the issue with it.

    <?php
    
    // Register widgetized areas
    
    function the_widgets_init() {
        if ( !function_exists('register_sidebars') )
            return;
    
        register_sidebar(array('name' => 'Sidebar Top','id' => 'sidebar-1','before_widget' => '<div id="%1$s" class="block widget %2$s">','after_widget' => '</div>','before_title' => '<h3 class="hl">','after_title' => '</h3>'));

  • The topic ‘Sidebar’ is closed to new replies.