This file contains 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
* Plugin Name: Soliloquy - Reload Page on Navigation Click
* Plugin URI: http://soliloquywp.com
* Version: 1.0
* Author: Tim Carr
* Author URI: http://www.n7studios.co.uk
* Description: Reloads the entire Page when the next or previous arrows are clicked, or the pager navigation is used. The correct slide is injected into the URL.
*/
/**
* Reload the entire page with a new slide is requested, showing that slide on the new page request
*
* @param array $data Slider Data
*/
function soliloquy_reload_page_on_navigation_click( $data ) {
Thanks for this Tim, exactly what I needed. Had to add some jQuery to your code to go to the slider container after page reload though, as our slideshows are all at the bottom of posts/pages.
Probably not the best solution (jquery as opposed to WP hooks), but I'm pretty new to Soliloquy. And might as well let the client do the work instead of PHP. 😀
Thanks for this Tim, exactly what I needed. Had to add some jQuery to your code to go to the slider container after page reload though, as our slideshows are all at the bottom of posts/pages.
So I forked your gist and made a few changes (very few):
https://gist.github.com/tlongren/29323574327395d2c643/revisions
Probably not the best solution (jquery as opposed to WP hooks), but I'm pretty new to Soliloquy. And might as well let the client do the work instead of PHP.😀