Support » Theme: Responsive » Custom widgets not showing on homepage after update (child theme)

  • Hi all. Happy new year! We encountered a problem with our site after updating the theme. We’re using a child theme which we have modified to show additional widgets on the home page. After updating the theme, some of our custom widgets disappeared and a new instance of the slider started showing further down the page.
    We’ve since rolled back the site to how it was before (and this is also how we’d like it to look after the update).Here is a link to how it looked after the update. The dashboard showed all the widgets and the contents, but they didn’t show on the site.
    We do see a message on the dashboard saying that the theme update is a major one, and to read the info on the update page first, but the page is unavailable.
    We love the theme, and would like to carry on using it as we have done quite a bit of work to it to get it just how we want. Could anyone advise how best to update the theme without breaking the site please?
    Many thanks in advance!

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Theme Author CyberChimps

    (@cyberchimps)

    Hi,

    Can you please let me know the version of the theme you have updated to (after updating) and the previous version (before updating)?
    Moreover, How you have configured custom widget in the child theme?

    Also, can you please share the screenshot of the message which says “theme update is a major one” and the link where it is getting redirected?

    Please share the details so that I can assist you better.
    Thank you.

    Hi Thanks for your response.

    we are using a child theme. We were updating the main theme from Version: 1.9.7.9 to version 3.9
    Here’s a link to the screenshot showing the major update message.
    And this is where it links to.

    The extra widgets are configured in the child theme. Here’s the functions.php content:

     /**
         * WordPress Widgets start right here.
         */
        function responsive_child_widgets_init() {
    
            register_sidebar(array(
                'name' => __('Home Widget 84', 'responsive'),
                'description' => __('Home Widget Eighty Four - sidebar-home.php', 'responsive'),
                'id' => 'home-widget-84',
                'before_title' => '<div id="widget-title-three" class="widget-title-home"><h3>',
                'after_title' => '</h3></div>',
                'before_widget' => '<div id="%1$s" class="widget-wrapper %2$s">',
                'after_widget' => '</div>'
            ));
    		
    		 register_sidebar(array(
                'name' => __('Home Widget 54', 'responsive'),
                'description' => __('Area Nine - sidebar-home-widgets-triple.php', 'responsive'),
                'id' => 'home-widget-4',
                'before_title' => '<div id="widget-title-one" class="widget-title-home"><h3>',
                'after_title' => '</h3></div>',
                'before_widget' => '<div id="%1$s" class="widget-wrapper %2$s">',
                'after_widget' => '</div>'
            ));
    
            register_sidebar(array(
                'name' => __('Home Widget 55', 'responsive'),
                'description' => __('Area Ten - sidebar-home-widgets-triple.php', 'responsive'),
                'id' => 'home-widget-5',
                'before_title' => '<div id="widget-title-two" class="widget-title-home"><h3>',
                'after_title' => '</h3></div>',
                'before_widget' => '<div id="%1$s" class="widget-wrapper %2$s">',
                'after_widget' => '</div>'
            ));
    
            register_sidebar(array(
                'name' => __('Home Widget 56', 'responsive'),
                'description' => __('Area Ten - sidebar-home-widgets-triple.php', 'responsive'),
                'id' => 'home-widget-6',
                'before_title' => '<div id="widget-title-two" class="widget-title-home"><h3>',
                'after_title' => '</h3></div>',
                'before_widget' => '<div id="%1$s" class="widget-wrapper %2$s">',
                'after_widget' => '</div>'
            ));
    
    	   register_sidebar(array(
                'name' => __('Home Widget 94', 'responsive'),
                'description' => __('Area Nine - sidebar-home-widgets-tripletwo.php', 'responsive'),
                'id' => 'home-widget-94',
                'before_title' => '<div id="widget-title-one" class="widget-title-home"><h2>',
                'after_title' => '</h2></div>',
                'before_widget' => '<div id="%1$s" class="widget-wrapper %2$s">',
                'after_widget' => '</div>'
            ));
    
            register_sidebar(array(
                'name' => __('Home Widget 95', 'responsive'),
                'description' => __('Area Ten - sidebar-home-widgets-tripletwo.php', 'responsive'),
                'id' => 'home-widget-95',
                'before_title' => '<div id="widget-title-two" class="widget-title-home"><h2>',
                'after_title' => '</h2></div>',
                'before_widget' => '<div id="%1$s" class="widget-wrapper %2$s">',
                'after_widget' => '</div>'
            ));
    
            register_sidebar(array(
                'name' => __('Home Widget 96', 'responsive'),
                'description' => __('Area Ten - sidebar-home-widgets-tripletwo.php', 'responsive'),
                'id' => 'home-widget-96',
                'before_title' => '<div id="widget-title-two" class="widget-title-home"><h2>',
                'after_title' => '</h2></div>',
                'before_widget' => '<div id="%1$s" class="widget-wrapper %2$s">',
                'after_widget' => '</div>'
            ));
    	  
            register_sidebar(array(
                'name' => __('Home Widget Single', 'responsive'),
                'description' => __('Area Twelve - sidebar-home-widget-single.php', 'responsive'),
                'id' => 'home-widget-single',
                'before_title' => '<div id="widget-title-three" class="widget-title-home"><h1>',
                'after_title' => '</h1></div>',
                'before_widget' => '<div id="%1$s" class="widget-wrapper %2$s">',
                'after_widget' => '</div>'
            ));
    		
    		register_sidebar(array(
                'name' => __('Home Widget Quote', 'responsive'),
                'description' => __('Area Twelve - sidebar-home-widget-quote.php', 'responsive'),
                'id' => 'home-widget-quote',
                'before_title' => '<div id="widget-title-three" class="widget-title-home"><h3>',
                'after_title' => '</h3></div>',
                'before_widget' => '<div id="%1$s" class="widget-wrapper %2$s">',
                'after_widget' => '</div>'
            ));
    
            register_sidebar(array(
                'name' => __('Home Widget Double 1', 'responsive'),
                'description' => __('Area Thirteen - sidebar-home-widgets-double.php', 'responsive'),
                'id' => 'home-widgets-double-1',
                'before_title' => '<div id="widget-title-two" class="widget-title-home"><h3>',
                'after_title' => '</h3></div>',
                'before_widget' => '<div id="%1$s" class="widget-wrapper %2$s">',
                'after_widget' => '</div>'
            ));
    
            register_sidebar(array(
                'name' => __('Home Widget Double 2', 'responsive'),
                'description' => __('Area Fourteen - sidebar-home-widgets-double.php', 'responsive'),
                'id' => 'home-widgets-double-2',
                'before_title' => '<div id="widget-title-three" class="widget-title-home"><h3>',
                'after_title' => '</h3></div>',
                'before_widget' => '<div id="%1$s" class="widget-wrapper %2$s">',
                'after_widget' => '</div>'
            ));
    		
    		
    		
    		 register_sidebar(array(
                'name' => __('Footer Widget 1', 'responsive'),
                'description' => __('Area Custom One - sidebar-footer.php', 'responsive'),
                'id' => 'footer-widget-1',
                'before_title' => '<div id="widget-title-one" class="widget-title-home"><h3>',
                'after_title' => '</h3></div>',
                'before_widget' => '<div id="%1$s" class="widget-wrapper %2$s">',
                'after_widget' => '</div>'
            ));
    
            register_sidebar(array(
                'name' => __('Footer Widget 2', 'responsive'),
                'description' => __('Area Custom Two - sidebar-footer.php', 'responsive'),
                'id' => 'footer-widget-2',
                'before_title' => '<div id="widget-title-two" class="widget-title-home"><h3>',
                'after_title' => '</h3></div>',
                'before_widget' => '<div id="%1$s" class="widget-wrapper %2$s">',
                'after_widget' => '</div>'
            ));
    
            register_sidebar(array(
                'name' => __('Footer Widget 3', 'responsive'),
                'description' => __('Area Custom Three - sidebar-footer.php', 'responsive'),
                'id' => 'footer-widget-3',
                'before_title' => '<div id="widget-title-three" class="widget-title-home"><h3>',
                'after_title' => '</h3></div>',
                'before_widget' => '<div id="%1$s" class="widget-wrapper %2$s">',
                'after_widget' => '</div>'
            ));
    		
    		register_sidebar(array(
                'name' => __('Footer Widget 4', 'responsive'),
                'description' => __('Area Custom Four - sidebar-footer.php', 'responsive'),
                'id' => 'footer-widget-4',
                'before_title' => '<div id="widget-title-four" class="widget-title-home"><h3>',
                'after_title' => '</h3></div>',
                'before_widget' => '<div id="%1$s" class="widget-wrapper %2$s">',
                'after_widget' => '</div>'
            ));
    	
        }
    
    	
        
        add_action('widgets_init', 'responsive_child_widgets_init');
    global $pagenow;
    if ( is_admin() && isset( $_GET['activated'] ) && $pagenow == 'themes.php' ) add_action('init', 'woo_install_theme', 1);
    function woo_install_theme() {
     
    update_option( 'woocommerce_thumbnail_image_width', '300' );
    update_option( 'woocommerce_thumbnail_image_height', '300' );
    update_option( 'woocommerce_single_image_width', '600' );
    update_option( 'woocommerce_single_image_height', '600' );
    update_option( 'woocommerce_catalog_image_width', '450' );
    update_option( 'woocommerce_catalog_image_height', '450' );
    add_theme_support( 'post-thumbnails' ); 
    }
    
    add_filter('wpseo_locale', 'override_og_locale');
    function override_og_locale($locale)
    {
        return "en_GB";
    }
    
    add_filter( 'wp_image_editors', 'change_graphic_lib' );
    function change_graphic_lib($array) {
      return array( 'WP_Image_Editor_GD', 'WP_Image_Editor_Imagick' );
    }
    
    ?>

    We’ve created our own sidebar-home-widget-triple-two.php etc too, and all that works fine in the current theme version.
    and here’s a screengrab of how it shows in the admin area.

    When we updated the main theme, the extra widgets we created stopped showing on the homepage, but they were still visible in the admin area.

    Theme Author CyberChimps

    (@cyberchimps)

    Hi,

    Thanks for sharing the details.
    The version 1.9.7.9 is very old, which was released in Feb 2016. Its almost 2 years you haven’t updated the theme.
    There are many things changed in the theme, added new codes, features, fixed the bugs etc. If the custom widgets display on in the admin dashboard, there might be the issue with the display part.
    Please check the code which is used to display it on the website.

    Regarding the major theme update notice, it was a bug in the theme and we have fixed it. You can update your theme without any issue but please keep a backup of the theme before updating since you are updating after a very long time.

    Thank you.

    • This reply was modified 9 months, 1 week ago by  CyberChimps.

    I, too, am adding more widgets to the responsive theme (child theme), but I have lost the widget section on the home page. I believe my error is with the front-page.php file, but have not yet determined how to combine the file from the responsive theme into the responsive-child-theme. In other words, if I replace front-page.php from the responsive theme, I get that image (widget area) at the top of the page below the menu. (www.briggsgardencenternc.com)

    If I use my created front-page.php file, which is in responsive-child-theme, I lose that area, but gain all my additional widget areas.

    I think I’m close, but don’t know which part of the code to grab from the responsive theme and place into the child theme. I sure hope that makes sense.

    If you go to the website I reference, you’ll see my code for [smartslider], which is a nice little slideshow that belongs in that area.

    If anyone can help with this last little headache, I would be forever grateful.

    Thank you for any help that’s out there this weekend.

    Janis

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.