Viewing 4 replies - 1 through 4 (of 4 total)
  • You need to register jquery bore plugin script.js file runs.
    Open the plugin file norman-adv-archive.php and go to line number 266. Then add the following line
    wp_enqueue_script(‘jquery’);

    So the final function would be like like

    function NormanArchiveWidget_script() {
    	$plugin_url = plugins_url ( plugin_basename ( dirname ( __FILE__ ) ) );
    	wp_register_script( 'SZArchiveWidget_script', $plugin_url.'/script.js');
            wp_enqueue_script('jquery');
      wp_enqueue_script( 'SZArchiveWidget_script');
    }

    problems w/ WP 3.4.1

    does not work

    WORK!!!

    script.js

    jQuery(document).ready(function() {
    jQuery(‘li.norman-adv-archive-year a.icon’).click(function() {
    if (jQuery(this).hasClass(‘more’)) {
    jQuery(this).removeClass(‘more’);
    jQuery(this).addClass(‘less’);
    } else {
    jQuery(this).removeClass(‘less’);
    jQuery(this).addClass(‘more’);
    }
    jQuery(this).parent().children(‘ul’).slideToggle(‘fast’);
    return false;
    });
    });

    Thanks for tip, but anyway script should be updated, so I will vote for doesn’t work with 3.4.1

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘[Plugin: Norman Advanced Archive Widget] Two problems w/ WP 3.3.2’ is closed to new replies.