• Resolved suhasa010

    (@suhasa010)


    I am using a premium theme called ‘unspoken’ from wpshower.com .
    It doesnt show titles of some widgets like recent posts plus, tag cloud, jetpack subscription, popular posts.
    Any html/css/php code to show its title?
    Any help would be appreciated. 🙂
    my site: http://suhasa010.twomini.com

Viewing 7 replies - 1 through 7 (of 7 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Have you tried contacting your theme’s vendors?

    Same to me

    Invalid argument supplied for foreach() in mywebsite/wp-content/themes/unspoken/core/widgets/tabs.php on line 30

    It seems that the publisher don’t update it seems

    class wpshower_tabs extends WP_Widget {
    
        function wpshower_tabs() {
            $widget_args = array('classname' => 'unspoken-tabs', 'description' => __('Tabs', 'unspoken') );
            parent::WP_Widget(false, __('WPSHOWER Tabs', 'unspoken'), $widget_args);
        }
    
        function form() {}
    
        function update() {}
    
        function widget($args) {
            global $wp_registered_widgets;
            extract( $args );
            echo $before_widget;
            $widget_ids = wp_get_sidebars_widgets();
            if ( !empty($widget_ids['tabs-widget-area']) ) {
                echo '<div class="tabs-section">';
    
                $output = '<ul class="tabs-list">';
                $i = 0;
                foreach ( $widget_ids['tabs-widget-area'] as $widget ) {
    		// <-- DURANDAL --
                    //$widget_object = $wp_registered_widgets[$widget]['callback'][0];
    		$widget_object = $wp_registered_widgets[$widget]['callback_wl_redirect'][0];
    		// -- DURANDAL -->
                    $widget_id = $wp_registered_widgets[$widget]['params'][0]['number'];
                    $widget_data = get_option($widget_object->option_name);
                    foreach ( $widget_data as $id=>$widget ) {
                        if ( $id == $widget_id ) {
                            $i++;
                            if ( $i == 1 ) {
                                $output .= '<li class="tabs-current">'.$widget['title'].'</li>';
                            } else {
                                $output .= '<li>'.$widget['title'].'</li>';
                            }
                        }
                    }
                }
                echo $output .= '</ul>';
    
                if ( !dynamic_sidebar('tabs-widget-area') );
    
                echo '</div>';
            }
            echo $after_widget;
        }
    }
    add_action('widgets_init', create_function('', 'return register_widget("wpshower_tabs");'));

    working by updating tabs.php
    http://code.google.com/p/nm-themes/source/browse/trunk/unspoken/core/widgets/tabs.php?r=44

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    WordPress forums provide support for the core application, themes and plugins that are distributed on wordpress.org.

    Commercial themes and plugins are not supported.
    Contact your vendors.

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    In your case the vendor support link is this one.

    http://wpshower.com/forums/forumdisplay.php?f=12

    Thread Starter suhasa010

    (@suhasa010)

    Thanks for all your support. I shall contact the vendors

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Theme: Unspoken] Widgets title not displayed’ is closed to new replies.