ThemeShaper Forums » Thematic

[closed]

Widget Weirdness?

(3 posts)
  • Started 3 years ago by oakview
  • Latest reply from oakview
  • This topic is not resolved
  1. oakview
    Member

    Anyone else having this issue?

    When I drag a text widget to any of the widgetized areas, the widget opens without a textbox area to add content area, it just shows the widget title bar, Delete and Close links and the Save button, nothing else.

    If I navigate away to another admin panel, then back to widgets, the textbox area appears and I can enter content. Wierd, never had this happen before with any version of Thematic.

    I'm using the downloaded Thematic 0.9.7.7, and it doesn't make a difference if I have any plugins enabled or all disabled. I turned on Debug, nothing, and I cannot find anything wrong with my functions file.

    Appreciate any thoughts to reolve the problem.

    <?php
    //
    //  Custom Child Theme Functions
    //
    // Adds a home link to the navigation menu
    function childtheme_menu_args($args) {
        $args['show_home']  = 'Home';
    
    	return $args;
    }
    add_filter('wp_page_menu_args','childtheme_menu_args', 20);
    
    // Unleash the power of Thematic's dynamic classes
    define('THEMATIC_COMPATIBLE_BODY_CLASS', true);
    define('THEMATIC_COMPATIBLE_POST_CLASS', true);
    // Unleash the power of Thematic's comment form
    // define('THEMATIC_COMPATIBLE_COMMENT_FORM', true);
    // Unleash the power of Thematic's feed link functions
    // define('THEMATIC_COMPATIBLE_FEEDLINKS', true);
    
    function my_init_method() {
    //use google's jquery
    if (!is_admin()){
    	wp_deregister_script( 'jquery' );
    	wp_register_script('jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js');
    	wp_enqueue_script('jquery');
    	wp_enqueue_script('jquery-cycle', get_bloginfo('stylesheet_directory') . '/js/jquery.cycle.min.js');
        wp_enqueue_script('fader', get_bloginfo('stylesheet_directory') . '/js/fader.js');
    	}
    
    }
    add_action('template_redirect', 'my_init_method');
    
    // Add a favicon
    function childtheme_favicon() { ?>
    <link rel="shortcut icon" href="<?php echo bloginfo('stylesheet_directory') ?>/images/favicon.ico" />
    <?php }
    
    add_action('wp_head', 'childtheme_favicon');
    
    function remove_access() {
      remove_action('thematic_header','thematic_access',9);
    }
    add_action('init','remove_access');
    add_action('thematic_header','thematic_access',5);
    
    // Always wrap the blog description in a div
    function remove_blogdescription() {
       remove_action('thematic_header', 'thematic_blogdescription', 5);
    }
    add_action('init', 'remove_blogdescription');
    
    function my_blogdescription()
    { ?>
    	<div id="blog-description"><?php bloginfo('description') ?></div>
    <?php }
    add_action('thematic_header','my_blogdescription',5);
    
    function above_wrapper() { ?>
      <div id="above-wrapper"></div>
    <?php }
    add_action('thematic_before','above_wrapper');
    
    // Superfish dropdowns - Filter default dropdown options
    // http://users.tpg.com.au/j_birch/plugins/superfish/#options
    function childtheme_supersub_options($dropdown_options) {
    	$dropdown_options = '<script type="text/javascript" src="'. get_bloginfo('stylesheet_directory') .'/js/thematic-supersubs.js"></script>';
    	return $dropdown_options;
    }
    add_filter('thematic_dropdown_options','childtheme_supersub_options');
    
    // Remove the post header entry-meta
    function remove_postmeta() {
    	/* bye postmeta */
    }
    add_filter('thematic_postheader_postmeta', 'remove_postmeta');
    
    // Add the entry-meta to the post footer
    function my_postfooter_postmeta() {
        $postmeta = '<div class="entry-meta">';
        $postmeta .= 'Posted On: ';
        $postmeta .= get_the_date( 'F d, Y' );
        $postmeta .= "<br />";
        $postmeta .= __('Filed Under: ', 'thematic') . get_the_category_list(', ');
        $postmeta .= thematic_postmeta_editlink();
        $postmeta .= "</div><!-- .entry-meta -->\n";
        return $postmeta;
    }
    add_filter('thematic_postfooter','my_postfooter_postmeta');
    
    //Use a post excerpt for all posts
    function childtheme_content($content) {
    	if ( is_home () ) {
    		$content= 'excerpt';
            }
    	return $content;
    }
    add_filter('thematic_content', 'childtheme_content');
    
    // Set the excerpt length
    function new_excerpt_length($length) {
    	return 55;
    }
    add_filter('excerpt_length', 'new_excerpt_length');
    
    // Add the read more link to the post
    function new_excerpt_more($more) {
           global $post;
    	return '...<br /><span class="read-more"><a href="'. get_permalink($post->ID) . '">' . 'Continue reading '. '</a>...</span>';
    }
    add_filter('excerpt_more', 'new_excerpt_more');
    
    // Add image slider div above the content
    function my_abovecontent() { if(is_home()) { ?>
        <div id="faderbox"><?php include('cycle-contents.php'); ?></div>
    <?php }}
    add_action('thematic_abovecontent','my_abovecontent');
    
    // Add a div above the sidebar
    function aside_container() { ?>
        <div id="sidebar-box"><img src="<?php echo bloginfo('stylesheet_directory') ?>/images/sidebar-img.jpg" /></div>
    <?php }
    add_action('thematic_abovemainasides','aside_container');
    
    ?>
    Posted 3 years ago #
  2. beanfair
    Member

    I can't seem to replicate the problem. Do you have the same issue with the text widget if you switch out to TwentyTen theme?

    Posted 3 years ago #
  3. oakview
    Member

    Thanks for the reply beanfair. The problem seems to be aparrent only on my workstation (Ubuntu Linux w/ LAMPP) web server. After I uploaded the site to it's real home on the 'Net, the widgets are working just fine. **scratches head**

    Dunno what the issue is, but it's definitely local to my workstation setup. I'll look into it more when I start the next website development locally.

    Posted 3 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.