Created
          April 15, 2021 16:09 
        
      - 
      
- 
        Save max-kk/320c61a754ca4dae20e385aee019ceed to your computer and use it in GitHub Desktop. 
    FV Gallery slider exmaple
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <?php | |
| // COPY AFTER | |
| add_action( 'fv_after_contest_item', function ($theme, $contestant, $where = 'competitor') { | |
| if ( $where === 'competitor' ) { | |
| wp_enqueue_script('[email protected]', 'https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.8.1/slick.min.js', ['jquery']); | |
| wp_enqueue_style('[email protected]', 'https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.8.1/slick.min.css', 'fv_main_css'); | |
| wp_add_inline_script('[email protected]', "jQuery('.contest-block-extra').slick({ | |
| infinite: true, | |
| slidesToShow: 3, | |
| slidesToScroll: 3 | |
| });"); | |
| } | |
| } ); | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment