Making WordPress.org


Ignore:
Timestamp:
10/01/2020 07:23:05 AM (5 years ago)
Author:
dd32
Message:

Showcase: Only load the showcase sidebar content on single post pages, rather than loading it everywhere hidden and using JS to show it conditionally.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/functions.php

    r10000 r10336  
    236236    wp_enqueue_script( 'jquery' ); // explicit enqueue
    237237    wp_enqueue_script( 'jquery-cycle', get_template_directory_uri() . '/js/jquery.cycle2.min.js', array( 'jquery' ) );
    238     wp_enqueue_script( 'wpsc-scripts', get_template_directory_uri() . '/js/scripts.js', array( 'jquery', 'jquery-cycle' ), '20171214a' );
     238    wp_enqueue_script( 'wpsc-scripts', get_template_directory_uri() . '/js/scripts.js', array( 'jquery', 'jquery-cycle' ), '20201001' );
    239239}
    240240add_action('wp_enqueue_scripts', 'wpsc_scripts');
Note: See TracChangeset for help on using the changeset viewer.