0
I’m trying to develop a theme, from scratch, in Wordpress, accompanying video lessons. The problem didn’t 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 don’t 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;
}
That code doesn’t seem to work at all.
Thank you from now on here.
I found the reason for the "error". In fact, the version used by the video lessons are outdated. To enable these options, the newest versions of Wordpress have their own activation features at the time of code development.
– Wesley Redfield