Hi Kathryn, thank you for your replay.
Yesterday I traied to create the new widget, but I create an error, and then I restored the function.php.
I would like to try again, but let me now if I’m in wrong doing this:
First of all in the dashboard of my child theme I went in Appearance –> Editor. On the right side I selected Theme Function (function.php), and I copied and pasted this code
<?php
/**
* Register our sidebars and widgetized areas.
*
*/
function arphabet_widgets_init() {
register_sidebar( array(
'name' => 'Home right sidebar',
'id' => 'home_right_1',
'before_widget' => '<div>',
'after_widget' => '</div>',
'before_title' => '<h2 class="rounded">',
'after_title' => '</h2>',
) );
}
add_action( 'widgets_init', 'arphabet_widgets_init' );
?>
Then, always in the right side, to go to to the sidebar.php I selected in template –> Sela (I don’t have all the php in my child theme, I only have the function.php and style.css), and then in sidebar.php I copied and past this code
<?php if ( is_active_sidebar( 'home_right_1' ) ) : ?>
<div id="primary-sidebar" class="primary-sidebar widget-area" role="complementary">
<?php dynamic_sidebar( 'home_right_1' ); ?>
</div><!-- #primary-sidebar -->
<?php endif; ?>
But then what I have to do? I only have to change home_right_1 in this <?php dynamic_sidebar( ‘home_right_1’ ); ?>
I only can see a big with space between the menu and the logo. How can I put it after the “third front page widget area”?
Thank you again,
Ilaria!