I'm trying to develop a theme from scratch in Wordpress by following video lessons. The problem did not just happen to me, there are people commenting on the same problem that is the fact that after all the PHP, HTML and CSS coding aimed at creating widgets, they just do not appear.
/*Na página index.php*/
<div class="right_sidebar"><?php get_sidebar(); ?></div>
/*Na página function.php*/
<?php
if(function_exists('register_sidebar'))
register_sidebar(array(
'before_widget' => '<div class="widgets">',
'after_widget' => '</div>',
'before_title' => '<h2>',
'after_title' => '</h2>',
));
?>
/*Na página style.css*/
.sidebar .widgets{
width: 210px;
background-color: #EEE;
border: 1px solid #CCC;
padding: 18px;
font-size: 15px;
color: #CCC;
margin-top: 40px;
}
.sidebar .widgets h3{
font-family: Helvetica;
color: #333;
}
This code does not seem to work at all.
Thank you in advance.