One of the basic things to do when you’re creating a wordpress theme is to add Widget areas and a lot of times you will end up building a full theme just using widets. Procedure is quite easy:
We open the functions.php and locate the following line:if (function_exists(‘register_sidebar’))Then we add our instruction:register_sidebar(array(
‘name’=> ‘Widget Panel Name’,
‘id’ => ‘widget-code’,
‘description’ => ‘Widget description’,
‘before_widget’ => ‘<div>’,
‘after_widget’ => ‘</div>’,
‘before_title’ => ‘<h2>’,
‘after_title’ => ‘</h2>’,
));Where “Widget Panel Name” will be the one visible at the admin, and “widget-code” will be the one we will use inside the theme php.[cq_vc_fluidbox thumbwidth=”500″ fluidimage=”4732″][/cq_vc_fluidbox][cq_vc_fluidbox thumbwidth=”500″ fluidimage=”4733″][/cq_vc_fluidbox]Now we just need to add the instruction inside our theme, for me, I wanted to show a Geo post location map for the author’s post. the instruction to add the widget is this:<!–?php if (!function_exists(‘dynamic_sidebar’) ||
!dynamic_sidebar(‘widget-code’)) : ?–>
<!–?php endif; ?–>Remember to add some style so it doesn’t break, and this is everything you need to do to add your personalized widget area.[cq_vc_fluidbox thumbwidth=”500″ fluidimage=”4734″][/cq_vc_fluidbox]



Que bueno que te funcione! El punto sale ya que no le diste estilo a la etiqueta “li” de ese código. Simplemente ve a tu css y ubica la etiqueta “.wpb_row *, .wpb_row *:before, .wpb_row *:after ;” en la misma agrega “list-style: none;” Con eso debería bastar.
Buenas me ha servido mucho este codigo, pero cuando entro luego en el widget desde chrome me aparece un punto antes del contenido del widget. ¿Como soluciono esto? Lo puedes ver por ejemplo aqui:
http://gatospardos.es/videogallery/hipsters-en-leon-gatos-pardos-03-15-01-15-gravity-y-weekend/
[…] forma que tienen es la de agregar un widget en el header y desde el admin, colocar la caja de mQtranslate; sin embargo, este es otro […]
[…] forma que tienen es la de agregar un widget en el header y desde el admin, colocar la caja de mQtranslate; sin embargo, este es otro método en […]