Viendo 4 respuestas - de la 1 a la 4 (de un total de 4)
  • No tiene vuelta de hoja… Debe ser una tontería… Asegúrate de que el archivo functions.php lo has nombrado bien.

    Un saludo

    Iniciador del debate VictoriaPL

    (@victoriapl)

    No consigo Pedro podrías echarme una mano

    he retocado el archivo sidebar-home y el functions del childtheme

    quedando así sidebar-home
    <?php

    // Exit if accessed directly
    if ( !defined(‘ABSPATH’)) exit;

    /**
    * Home Widgets Template
    *
    *
    * @file sidebar-home.php
    * @package Responsive
    * @author Emil Uzelac
    * @copyright 2003 – 2012 ThemeID
    * @license license.txt
    * @version Release: 1.0
    * @filesource wp-content/themes/responsive-child-theme/sidebar-home.php
    * @link http://codex.wordpress.org/Theme_Development#Widgets_.28sidebar.php.29
    * @since available since Release 1.0
    */
    ?>
    <div id=»widgets» class=»home-widgets»>
    <div class=»grid col-220″>
    <?php responsive_widgets(); // above widgets hook ?>

    <?php if (!dynamic_sidebar(‘home-widget-1’)) : ?>
    <div class=»widget-wrapper»>

    <div class=»widget-title-home»><h3><?php _e(‘Home Widget 1’, ‘responsive’); ?></h3></div>
    <div class=»textwidget»><?php _e(‘This is your first home widget box. To edit please go to Appearance > Widgets and choose 6th widget from the top in area six called Home Widget 1. Title is also manageable from widgets as well.’,’responsive’); ?></div>

    </div><!– end of .widget-wrapper –>
    <?php endif; //end of home-widget-1 ?>

    <?php responsive_widgets_end(); // responsive after widgets hook ?>
    </div><!– end of .col-220 –>

    <div class=»grid col-220″>
    <?php responsive_widgets(); // responsive above widgets hook ?>

    <?php if (!dynamic_sidebar(‘home-widget-2’)) : ?>
    <div class=»widget-wrapper»>

    <div class=»widget-title-home»><h3><?php _e(‘Home Widget 2’, ‘responsive’); ?></h3></div>
    <div class=»textwidget»><?php _e(‘This is your second home widget box. To edit please go to Appearance > Widgets and choose 7th widget from the top in area seven called Home Widget 2. Title is also manageable from widgets as well.’,’responsive’); ?></div>

    </div><!– end of .widget-wrapper –>
    <?php endif; //end of home-widget-2 ?>

    <?php responsive_widgets_end(); // after widgets hook ?>
    </div><!– end of .col-220 –>

    <div class=»grid col-220″>
    <?php responsive_widgets(); // above widgets hook ?>

    <?php if (!dynamic_sidebar(‘home-widget-3’)) : ?>
    <div class=»widget-wrapper»>

    <div class=»widget-title-home»><h3><?php _e(‘Home Widget 3’, ‘responsive’); ?></h3></div>
    <div class=»textwidget»><?php _e(‘This is your third home widget box. To edit please go to Appearance > Widgets and choose 8th widget from the top in area eight called Home Widget 3. Title is also manageable from widgets as well.’,’responsive’); ?></div>

    </div><!– end of .widget-wrapper –>
    <?php endif; //end of home-widget-3 ?>

    <?php responsive_widgets_end(); // after widgets hook ?>
    </div><!– end of .col-220 –>

    <div class=»grid col-220″>
    <?php responsive_widgets(); // above widgets hook ?>

    <?php if (!dynamic_sidebar(‘quaternary-home-sidebar-widget’)) : ?>
    <div class=»widget-wrapper»>

    <div class=»widget-title-home»><h3><?php _e(‘H3 More Information’, ‘shell’); ?></h3></div>
    <div class=»textwidget»><?php _e(‘This is your fourth home widget box. To edit please go to Appearance > Widgets and choose 9th widget from the top in area eight called Home Widget 4. Title is also manageable from widgets as well.’,’responsive’); ?></div>

    </div><!– end of .widget-wrapper –> <?php endif; //end of quaternary-home-sidebar-widget ?>

    <?php shell_widgets_end(); // after widgets hook ?>
    </div><!– end of .col-220 fit –>

    y así el archivo functions

    <?php
    /**
    *Uvestudio Widgets start right here.
    */
    function uvestudio_widgets_init() {

    register_sidebar(array(
    ‘name’ => __(‘Quaternary Home Sidebar Widget’, ‘shell’),
    ‘description’ => __(‘Area Four Quaternary Home Widget’, ‘shell’),
    ‘id’ => ‘quaternary-home-sidebar-widget’,
    ‘before_title’ => ‘<div class=»widget-title-home»><h3>’,
    ‘after_title’ => ‘</h3></div>’,
    ‘before_widget’ => »,
    ‘after_widget’ => »
    ));
    }

    add_action(‘widgets_init’, ‘uvestudio_widgets_init’);
    ?>

    Hola Victoria

    He seguido el tutorial que indicaste arriba y funciona perfectamente…

    Has creado el child theme?

    Dentro de la carpeta themes de tu wordpress crea una carpeta que se llame por ejemplo childresponsive, y dentro de esa carpeta debes de tener 3 archivos
    style.css, functions.php y sidebar-home.php

    El contenido de functions.php y sidebar-home.php ya lo sabes y para el fichero style.css debes de tener este código:

    /*
       Theme Name: childresponsive
       Theme URI:
       Description: Child Theme. Parent Theme Responsive
       Author:
       Author URI:
       Template: responsive
       Version: 0.1
    */
    @import url(../responsive/style.css);

    Luego vas a Apariencia > Temas y activas el tema childresponsive

    A lo mejor te ha despistado el nombre del widget area en la zona de administración. Es Home Widget 4

    Un saludo

    Iniciador del debate VictoriaPL

    (@victoriapl)

    mira de verdad jaja estaba viendo abajo de widget 3 y ahora me doy cuenta q está arriba, perdona y muchas gracias

Viendo 4 respuestas - de la 1 a la 4 (de un total de 4)
  • El debate ‘añadir 4º home widget a responsive theme’ está cerrado a nuevas respuestas.