Skip to content

Instantly share code, notes, and snippets.

@n7studios
Created November 17, 2014 13:10
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 n7studios/1806da70add5f7781e4c to your computer and use it in GitHub Desktop.
Save n7studios/1806da70add5f7781e4c to your computer and use it in GitHub Desktop.
Soliloquy - Show Slider Arrows on Hover
<?php
/**
* Plugin Name: Soliloquy - Show Slider Arrows on Hover
* Plugin URI: http://soliloquywp.com
* Version: 1.0
* Author: Tim Carr
* Author URI: http://www.n7studios.co.uk
* Description: Shows slider arrows on hover
*/
/**
* Adds inline CSS to show / hide slider arrows on hover
*/
function soliloquy_show_slider_arrows_on_hover( ) {
?>
<style type="text/css">
.soliloquy-controls { display: none !important; }
.soliloquy-container:hover .soliloquy-controls { display: block !important; }
</style>
<?php
}
add_filter( 'wp_footer', 'soliloquy_show_slider_arrows_on_hover' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment