So after buying Slidedeck Pro for a clients site and shelling out the $99 that they ask I realized, like a lot of other people judging from the support forum, that the WordPress version isn’t nearly as easily customizable as the Slidedeck site leads one to believe. I think it’s really bad form how misleading their advertising is, but that’s another story altogether.
I needed to link to a specific slide on a page from a different page altogether. All the info I could find was on how to do this with the non-WP version and I got no real help on the Slidedeck support forum. I needed to use the WP version because my client will be adding the content and I can’t expect them to add content in the HTML so I needed to make use of WP’s WYSIWYG editor.
I thought I’d share how I managed to get this working since it seemed like a lot of other people have been trying to figure the same thing.
What I was trying to achieve
I have custom menus setup in the WP theme I created and I wanted each drop-down menu item to link to the corresponding slide on the correct page.
How I got it working
Firstly, I obviously added the slides to Slidedeck for WP.
Next I added the menu items in the WP back-end giving each one an anchor that corresponded to the slide number (ie. …/about/#3)
I put the code in the head section of my header.php file so it loads on every page. I did try it in an external .js file, but that didn’t work. Remember to use ‘jQuery’ (no quotation marks) instead of the $ symbol because of the way WP calls jQuery.
Linking to the page with the anchor in the URL from an external site will also open Slidedeck to the correct slide which is pretty awesome.
http://shanerielly.com/wp-content/uploads/2016/09/shane-rielly.png00Shanehttp://shanerielly.com/wp-content/uploads/2016/09/shane-rielly.pngShane2011-05-19 14:13:592011-05-19 14:16:51Slidedeck for Wordpress - linking to slides