MayerAnnamaria
8/14/2017 - 8:55 AM

add sidebar

add sidebar

1. function.php-be:
-------------
if ( function_exists('register_sidebar') ) { 
  register_sidebar(array( 
    'name' => 'Leiro statisztika Sidebar', 
    'id' => 'leirostati-sidebar', 
    'description' => 'A leiro statisztika oldalon', 
    'before_widget' => '<li id="%1$s" class="widget %2$s">', 
    'after_widget' => '</li>', 
    'before_title' => '<h2 class="widgettitle">', 
    'after_title' => '</h2>', 
  )); 
}

2. ahol meg akarom jeleniteni:
-----------
	if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('leirostati-sidebar') ) : endif;