-
Author
-
January 25, 2015 at 20:35 #43395laprekParticipant
Hello,
A while ago I have updated my theme. Since then I cannot modify my widgets. It’s been few months now. When I go to APPEARANCE -> WIDGETS, I can see all available widgets but I don’t see any sidebars.
I disabled all plugins that could cause the issue but nothing changed.
I’ll be grateful for your help.Thanks!
Attachments:
You must be logged in to view attached files.January 26, 2015 at 02:59 #43419LauraModeratorHello, have you added custom codes to functions.php?
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
January 26, 2015 at 10:06 #43430laprekParticipantHello,
Yes, I have. Only to functions.php in sweetdate-child folder. I have renamed the file to see what will happen but nothing changed.
Here is the code:
COPY CODE<?php /** * @package WordPress * @subpackage Sweetdate * @author SeventhQueen <themesupport@seventhqueen.com> * @since Sweetdate 1.0 */ /** * Sweetdate Child Theme Functions * Add extra code or replace existing functions */ add_action('after_setup_theme','kleo_remove_actions'); /** * Override existing actions * Use these functions to replace/remove existing actions * @since Sweetdate 1.3 */ function kleo_remove_actions() { /* For example uncomment the line bellow to disable matching on member profile */ //remove_action('kleo_bp_before_profile_name', 'kleo_bp_compatibility_match'); } /*bbpress fullwidth*/ /*add_action('wp_head', 'kleo_bbpress_tpl', 11); function kleo_bbpress_tpl() { //user is viewing a forum page if(get_post_type() == 'forum' OR get_post_type() == 'topic' OR get_post_type() == 'reply') { //set to full width remove_action('kleo_before_content', 'kleo_sidebar'); remove_action('kleo_after_content', 'kleo_sidebar'); remove_action('kleo_before_content', 'kleo_extra_sidebar'); remove_action('kleo_after_content', 'kleo_extra_sidebar'); add_filter('kleo_content_class', create_function(null, 'return "twelve";')); } } */ class SQueen_Recent_Posts2_widget extends WP_Widget { /** * Widget setup */ function __construct() { $widget_ops = array( 'description' => __( 'Recent posts with thumbnails widget.', 'kleo_framework' ) ); parent::__construct( 'kleo_recent_posts2', __('[Kleo] Recent posts2','kleo_framework'), $widget_ops ); } /** * Display widget */ function widget( $args, $instance ) { extract( $args, EXTR_SKIP ); $title = apply_filters( 'widget_title', $instance['title'] ); $limit = $instance['limit']; $length = (int)( $instance['length'] ); $thumb = $instance['thumb']; $cat = $instance['cat']; $post_type = $instance['post_type']; echo $before_widget; if ( ! empty( $title ) ) echo $before_title . $title . $after_title; global $post; if ( false === ( $kleo_recent_posts = get_transient( 'kleo_recent_posts2_' . $widget_id ) ) ) { $args = array( 'numberposts' => $limit, 'cat' => $cat, 'post_type' => $post_type ); $kleo_recent_posts = get_posts( $args ); set_transient( 'kleo_recent_posts2_' . $widget_id, $kleo_recent_posts, 60*60*12 ); } ?> <div> <ul class='latest-blog'> <?php foreach( $kleo_recent_posts as $post ) : setup_postdata( $post ); ?> <li> <?php if( $thumb == true ) : ?> <span class='avatar'><a href="<?php the_permalink(); ?>"><?php echo get_the_post_thumbnail(); ?></a></span> <?php endif; ?> <p><?php the_title(); ?> <br/><?php echo word_trim(get_the_excerpt(), $length, '...' ); ?> <a href="<?php the_permalink(); ?>"><?php _e("read more", 'kleo_framework'); ?></a></p> </li> <?php endforeach; wp_reset_postdata(); ?> </ul> </div> <?php echo $after_widget; } /** * Update widget */ function update( $new_instance, $old_instance ) { $instance = $old_instance; $instance['title'] = esc_attr( $new_instance['title'] ); $instance['limit'] = $new_instance['limit']; $instance['length'] = (int)( $new_instance['length'] ); $instance['thumb'] = $new_instance['thumb']; $instance['cat'] = $new_instance['cat']; $instance['post_type'] = $new_instance['post_type']; delete_transient( 'kleo_recent_posts_' . $this->id ); return $instance; } /** * Widget setting */ function form( $instance ) { /* Set up some default widget settings. */ $defaults = array( 'title' => '', 'limit' => 5, 'length' => 10, 'thumb' => true, 'cat' => '', 'post_type' => '', 'date' => true, ); $instance = wp_parse_args( (array) $instance, $defaults ); $title = esc_attr( $instance['title'] ); $limit = $instance['limit']; $length = (int)($instance['length']); $thumb = $instance['thumb']; $cat = $instance['cat']; $post_type = $instance['post_type']; ?> <p> <label for="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>"><?php _e( 'Title:', 'kleo_framework' ); ?></label> <input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'title' ) ); ?>" type="text" value="<?php echo $title; ?>" /> </p> <p> <label for="<?php echo esc_attr( $this->get_field_id( 'limit' ) ); ?>"><?php _e( 'Limit:', 'kleo_framework' ); ?></label> <select class="widefat" name="<?php echo $this->get_field_name( 'limit' ); ?>" id="<?php echo $this->get_field_id( 'limit' ); ?>"> <?php for ( $i=1; $i<=20; $i++ ) { ?> <option <?php selected( $limit, $i ) ?> value="<?php echo $i; ?>"><?php echo $i; ?></option> <?php } ?> </select> </p> <p> <label for="<?php echo esc_attr( $this->get_field_id( 'length' ) ); ?>"><?php _e( 'Excerpt length:', 'kleo_framework' ); ?></label> <input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'length' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'length' ) ); ?>" type="text" value="<?php echo $length; ?>" /> </p> <?php if( current_theme_supports( 'post-thumbnails' ) ) { ?> <p> <label for="<?php echo esc_attr( $this->get_field_id( 'thumb' ) ); ?>"><?php _e( 'Display Post Image?', 'kleo_framework' ); ?></label> <input id="<?php echo $this->get_field_id( 'thumb' ); ?>" name="<?php echo $this->get_field_name( 'thumb' ); ?>" type="checkbox" value="1" <?php checked( '1', $thumb ); ?> /> </p> <?php } ?> <p> <label for="<?php echo esc_attr( $this->get_field_id( 'cat' ) ); ?>"><?php _e( 'Show from category: ' , 'kleo_framework' ); ?></label> <?php wp_dropdown_categories( array( 'name' => $this->get_field_name( 'cat' ), 'show_option_all' => __( 'All categories' , 'kleo_framework' ), 'hide_empty' => 1, 'hierarchical' => 1, 'selected' => $cat ) ); ?> </p> <p> <label for="<?php echo esc_attr( $this->get_field_id( 'post_type' ) ); ?>"><?php _e( 'Choose the Post Type: ' , 'kleo_framework' ); ?></label> <select class="widefat" id="<?php echo $this->get_field_id( 'post_type' ); ?>" name="<?php echo $this->get_field_name( 'post_type' ); ?>"> <?php foreach ( get_post_types( '', 'objects' ) as $post_type ) { ?> <option value="<?php echo esc_attr( $post_type->name ); ?>" <?php selected( $instance['post_type'], $post_type->name ); ?>><?php echo esc_html( $post_type->labels->singular_name ); ?></option> <?php } ?> </select> </p> <?php } } /** * Register widget. * * @since 1.0 */ add_action( 'widgets_init', create_function( '', 'register_widget( "SQueen_Recent_Posts2_widget" );' ) ); add_action('after_setup_theme','kleo_my_custom_tabs'); function kleo_my_custom_tabs() { global $bp_tabs; $bp_tabs = array(); $bp_tabs['looking-for'] = array( 'type' => 'cite', 'name' => __('Looking for', 'kleo_framework'), 'group' => 'Looking for', 'class' => 'citetab' ); $bp_tabs['base'] = array( 'type' => 'regular', 'name' => __('About me', 'kleo_framework'), 'group' => 'Base', 'class' => 'regulartab' ); /* rtMedia tab - only if plugin installed */ if (class_exists('RTMedia')) { $bp_tabs['rtmedia'] = array( 'type' => 'rt_media', 'name' => __('My work', 'kleo_framework'), 'class' => 'mySlider' ); } /* Bp-Album tab - only if plugin installed */ elseif (function_exists('bpa_init')) { $bp_tabs['bp-album'] = array( 'type' => 'bp_album', 'name' => __('My photos', 'kleo_framework'), 'class' => 'mySlider' ); } $bp_tabs['social'] = array( 'type' => 'regular', 'name' => __('Social', 'kleo_framework'), 'class' => 'regulartab' ); } /** * Uncomment to change Looking for group with your own */ /* add_filter('kleo_extra_tab1', 'custom_tab'); function custom_tab() { return 'Base'; } */ /** * Uncomment to change default tab on member profile */ /* add_filter('kleo_bp_profile_default_top_tab','my_default_tab'); function my_default_tab() { return 'my-photos'; } */ add_action('after_setup_theme','kleo_my_actions'); function kleo_my_actions() { /* disable matching on member profile */ remove_action('kleo_bp_before_profile_name', 'kleo_bp_compatibility_match'); /* Replace the heart over images */ add_filter('kleo_img_rounded_icon', 'my_custom_icon'); /* Replace the heart from register modal */ add_filter('kleo_register_button_icon', 'my_custom_icon_register'); } /* Replace the heart with a camera icon function */ function my_custom_icon () { return 'camera'; } /* Replace the heart with a user icon function */ function my_custom_icon_register () { return 'user'; } /* Filter the redirect url for login*/ add_filter("login_redirect","kleo_redirect_to_profile",100,3); function kleo_redirect_to_profile($redirect_to_calculated,$redirect_url_specified,$user){ /*if no redirect was specified,let us think ,user wants to be in wp-dashboard*/ if(!is_super_admin($user->ID)) return bp_core_get_user_domain($user->ID ); else return $redirect_to_calculated; /*if site admin*/ } add_action('after_setup_theme','remove_search_form',11); function remove_search_form() { remove_action('after_header_content','render_user_search'); } /*Progress*/ add_action('kleo_bp_header_actions', 'my_prog_bar', 11); function my_prog_bar() { if (function_exists('bppp_progression_block') AND bp_is_my_profile()) { echo '<div class="clearfix"></div>'; bppp_progression_block(); } } ?>
January 26, 2015 at 21:22 #43499LauraModeratorHello, please can you link me to your website so i can log it? ty 🙂
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
January 27, 2015 at 02:11 #43552LauraModeratorHello, its not your functions.php file, so it has to be a plugin or any other file change, please be careful because some plugins still affect even deactivated.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
February 3, 2015 at 23:24 #44627laprekParticipantHi,
I have deleted all plugins that could cause the issue and still nothing. I have no idea what to do.
I did not change any other files, only in sweetdate-child folder.I’ll be grateful if you could help me. It’s been a very long time I’m trying to fix this.
Thank you.
February 6, 2015 at 17:07 #44963AndreiModeratorHi, you should try to disable ALL plugins, and remove any custom modifications you did in functions.php, or other files that you added after you installed our theme.
If you still don’t manage to get it working then please provide me ftp credentials and I’ll try to give a look as soon as i find some time and see what generates your problem.
Looking forward.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionFebruary 11, 2015 at 17:54 #45650laprekParticipantHello,
I really need your help. It’s been a few months that I’m not able to modify my sidebars.
Thank you ..
February 19, 2015 at 22:47 #46774AndreiModeratorI managed to give a look at your wordpress install and from what i see you have a plugin which comes as an additional layer of settings for widgets and which probably generates the error which blocks you your widgets page. (It was called Responsive widgets, or something like that).
Try to disable that plugin and let me know if everything is ok after that.
Cheers.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionFebruary 20, 2015 at 08:34 #46852laprekParticipantThank you Andrei.
The plugin is called Responsive Column Widgets. I have deactivated that plugin but nothing happened..
February 26, 2015 at 00:42 #47657AndreiModeratorOk, I’ll try to get back in and search for the issue but unfortunately we’ve been very busy in the last days.
I’ll get back to you as soon as I have some news.Cheers
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionMarch 1, 2015 at 01:49 #48191AndreiModeratorHi, I managed to investigate a little bit more and found out that there was a lot of errors generated by the “Facebook Widget” plugin, which I deactivated and everything works just fine now. It seems that the plugin is outdated.
Thanks for your patience.
Let me know if I can help you with something else.
CheersHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionMarch 16, 2015 at 01:37 #50238AndreiModeratorPlease disable your plugins one by one until you find the one that generates such issues.
This is really not a problem coming from our theme, it’s just about the old outdated plugins that you’re probably trying to use.Cheers
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts
The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.