NoDiktat

Add a WordPress image slider in Storefront before content

Oct 11th, 2020
124
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  add_filter( 'storefront_before_content', 'add_olaf_slider' );
  2. function add_olaf_slider() {
  3.     if ( is_front_page() ) {
  4.         echo do_shortcode('[simpleslider location="homepage" animation="slide" slideshowspeed="5"]');
  5.     }
  6. }
  7.  
RAW Paste Data