Skip to content

Instantly share code, notes, and snippets.

@thomasgriffin
Created December 17, 2013 19:35
Show Gist options
  • Save thomasgriffin/8011213 to your computer and use it in GitHub Desktop.
Save thomasgriffin/8011213 to your computer and use it in GitHub Desktop.
Append a title to the slider but before thumbnails.
<?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