Warning: Illegal string offset 'language' in /homepages/7/d574192756/htdocs/zeidan/wp-content/plugins/igsyntax-hiliter/classes/frontend.php on line 510

Warning: ksort() expects parameter 1 to be array, string given in /homepages/7/d574192756/htdocs/zeidan/wp-content/plugins/igsyntax-hiliter/classes/frontend.php on line 513

Warning: Illegal string offset 'language' in /homepages/7/d574192756/htdocs/zeidan/wp-content/plugins/igsyntax-hiliter/classes/frontend.php on line 510

Warning: ksort() expects parameter 1 to be array, string given in /homepages/7/d574192756/htdocs/zeidan/wp-content/plugins/igsyntax-hiliter/classes/frontend.php on line 513

Warning: Illegal string offset 'language' in /homepages/7/d574192756/htdocs/zeidan/wp-content/plugins/igsyntax-hiliter/classes/frontend.php on line 510

Warning: ksort() expects parameter 1 to be array, string given in /homepages/7/d574192756/htdocs/zeidan/wp-content/plugins/igsyntax-hiliter/classes/frontend.php on line 513

Warning: Illegal string offset 'language' in /homepages/7/d574192756/htdocs/zeidan/wp-content/plugins/igsyntax-hiliter/classes/frontend.php on line 510

Warning: ksort() expects parameter 1 to be array, string given in /homepages/7/d574192756/htdocs/zeidan/wp-content/plugins/igsyntax-hiliter/classes/frontend.php on line 513

Crear un área personalizada para Widgets WordPress

12 de Dic, 2014


Warning: Illegal string offset 'language' in /homepages/7/d574192756/htdocs/zeidan/wp-content/plugins/igsyntax-hiliter/classes/frontend.php on line 510

Warning: ksort() expects parameter 1 to be array, string given in /homepages/7/d574192756/htdocs/zeidan/wp-content/plugins/igsyntax-hiliter/classes/frontend.php on line 513

Warning: Illegal string offset 'language' in /homepages/7/d574192756/htdocs/zeidan/wp-content/plugins/igsyntax-hiliter/classes/frontend.php on line 510

Warning: ksort() expects parameter 1 to be array, string given in /homepages/7/d574192756/htdocs/zeidan/wp-content/plugins/igsyntax-hiliter/classes/frontend.php on line 513
Crear un área personalizada para Widgets WordPress
Rate this post

Si deseamos agregar un área personalizada para colocar Widgets en un template especifico, colocamos el siguiente código en el functions.php del tema.

  1. // Agrega un sidebar
  2.  
  3. if ( function_exists('register_sidebar') ){
  4.  
  5. register_sidebars(2,array(
  6. 'before_widget' => '
  7. <ul>
  8.     <li id="rs" class="widget rs">',
  9. 'after_widget' =&gt; '</li>
  10. </ul>
  11. ',
  12. 'before_title' =&gt; '
  13. <h2 class="widgettitle">',
  14. 'after_title' =&gt; '</h2>
  15. ',
  16. ));
  17. }

Y donde se desee tener lo que se coloque en ese widget

  1. include("sidebar2.php");