Skip to content

Instantly share code, notes, and snippets.

@faurelia
Last active March 18, 2022 05:31
Show Gist options
  • Select an option

  • Save faurelia/e9d2b83daae3b3e9b434c0e0ff4803ee to your computer and use it in GitHub Desktop.

Select an option

Save faurelia/e9d2b83daae3b3e9b434c0e0ff4803ee to your computer and use it in GitHub Desktop.

Revisions

  1. faurelia revised this gist Mar 18, 2022. 1 changed file with 13 additions and 0 deletions.
    13 changes: 13 additions & 0 deletions functions.php
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,17 @@
    <?php
    // options
    // array(
    // 'rtl' => is_rtl(),
    // 'animation' => 'slide',
    // 'smoothHeight' => true,
    // 'directionNav' => false,
    // 'controlNav' => 'thumbnails', // can be boolean
    // 'slideshow' => false,
    // 'animationSpeed' => 500,
    // 'animationLoop' => false, // Breaks photoswipe pagination if true.
    // 'allowOneSlide' => false,
    // )

    add_filter( 'woocommerce_single_product_carousel_options', 'update_woo_flexslider_options' );

    function update_woo_flexslider_options( $options ) {
  2. faurelia revised this gist Mar 18, 2022. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions functions.php
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,4 @@
    <?php
    add_filter( 'woocommerce_single_product_carousel_options', 'update_woo_flexslider_options' );

    function update_woo_flexslider_options( $options ) {
  3. faurelia created this gist Mar 18, 2022.
    6 changes: 6 additions & 0 deletions functions.php
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    add_filter( 'woocommerce_single_product_carousel_options', 'update_woo_flexslider_options' );

    function update_woo_flexslider_options( $options ) {
    $options['controlNav'] = true;
    return $options;
    }