thanks! I see, i have just been seeing the content of default-widgets.php. And also, sidebars in wordpress and dynamic and static sidebars, and now i think that my main problem was (and now i am seeing this a little more clear): i was mixing/seeing wrongly this concepts and relations:
1. widgets and sidebar and his relation. Still i have a little problem: i’m getting the sidebar what i want to generate, twice but in two unknown ways and i can’t see from where both different manners of producing the sidebar are being generated.
Here, my sidebar.php file code:
<?php
/**
* The Sidebar containing the main widget areas.
*
* @package sxo
* @since sxo 1.0
*/
?>
<div id="secondary" class="widget-area" role="complementary">
<aside id="search" class="widget widget_search">
<?php get_search_form(); ?>
</aside>
<aside id="archives" class="widget">
<h1 class="widget-title"><?php _e( 'Archives', 'sxo' ); ?></h1>
<ul class="archive-sidebar">
<?php wp_get_archives( array( 'type' => 'monthly') ); ?>
</ul>
</aside>
<aside id="meta" class="widget">
<h1 class="widget-title"><?php _e( 'Meta', 'sxo' ); ?></h1>
<ul>
<?php wp_register(); ?>
<li><?php wp_loginout(); ?></li>
<?php wp_meta(); ?>
</ul>
</aside>
<?php do_action( 'before_sidebar' ); ?>
<?php if ( is_active_sidebar( 'sidebar-1' ) ) : ?>
<?php dynamic_sidebar( 'sidebar-1' ); ?>
<?php endif; ?>
<?php if ( is_active_sidebar( 'sidebar-2' ) ) : ?>
<?php dynamic_sidebar( 'sidebar-2' ); ?>
<?php endif; ?>
</div>
and his call from my front-page.php:
<?php get_sidebar(); ?>
(And i have the widget activated from wp admin panel)
Do you know where could both sidebar codes being coming of?
2. aside.php template (possible custom sidebar template, could it be?), sidebar.php (default wp sidebar, it isn’t so?)template.
3. dynamic sidebars vs static sidebars (it seems too easy now)
4. wp-includes/general-templates.php vs wp-includes/default-widgets.php, i can see about the different uses of these files some more clear.
5 do_action( ‘before_sidebar’ ); (what is the location of the file associated to before_sidebar hook?)