Jetpack by WordPress.com
[resolved] Tiled Gallery in TwentyTwelve Header? (2 posts)

  1. Rand HOPPE
    Posted 3 years ago #

    Is it possible to call a tiled gallery in a 2012 child theme's header.php? I'd want it only on the home page, so I suppose is_front_page would have to be involved?



  2. Jeremy Herve
    Jetpack Mechanic
    Plugin Author

    Posted 3 years ago #

    You can use Tiled Galleries with all galleries using the [gallery] shortcode. You can use do_shortcode to insert a gallery in your template file, like so:

    <?php echo do_shortcode( '[gallery type="rectangular" ids="1242,1226,1225,1222,1221"]' ); ?>

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Jetpack by WordPress.com
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.