Created
December 17, 2013 19:35
-
-
Save thomasgriffin/8011213 to your computer and use it in GitHub Desktop.
Append a title to the slider but before thumbnails.
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
<?php | |
add_filter( 'tgmsp_after_slider', 'tgm_soliloquy_custom_title_after_slider', 10, 5 ); | |
function tgm_soliloquy_custom_title_after_slider( $slider, $id, $images, $soliloquy_data, $soliloquy_count ) { | |
// You could check for a specific ID here. | |
if ( '324' !== $id ) | |
return $slider; | |
// Build the H1 tag. | |
$h1 = '<h1>My Title Here</h1>'; | |
// Append the tag to the slider. | |
return $slider . $h1; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment