Skip to content

Instantly share code, notes, and snippets.

@JiveDig
Forked from thomasgriffin/gist:7308584
Last active August 29, 2015 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JiveDig/ba0e418407cc6b70d274 to your computer and use it in GitHub Desktop.
Save JiveDig/ba0e418407cc6b70d274 to your computer and use it in GitHub Desktop.
Remove styling and stylesheets in Soliloquy Slider
<?php
add_action( 'tgmsp_before_slider_output', 'tgm_custom_slider_theme' );
function tgm_custom_slider_of_madness( $id ) {
// If not the proper slider ID, do nothing. Change to match your slider ID.
if ( '324' !== $id ) return;
// Dequeue the default styles.
wp_dequeue_style( 'soliloquy-style' );
// You can enqueue any stylesheet you would like here for the slider. For best results, target the slider uniquely via IDs.
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment