This is searchable archive of our old support forums, which operated from 2012 - 2016. To find out how to get support for your current theme, please visit our support page.

Shortcode within a Tab

  • Creator
    Topic
  • #6787
    tetterling
    Member

    Is it possible to use shortcode withing a tab?

    I was hoping to use your tabs shortcode to place multiple photo galleries on one page. I am using a paid gallery plug-in called Thumbnail Gallery. I tried creating the tabs and then inserting the shortcode for a different gallery along with the content of each tab. The gallery appears as it is supposed to on the first tab (RDC Hacienda), but none of the galleries show up on any of the other tabs.

    So really two questions… is it possible? If so, what am I doing wrong?

    http://jaredcurry.com/test-gallery/

    Thanks,
    Tiffany

Viewing 1 replies (of 1 total)
  • Author
    Replies
  • #6801
    Jason Bobich
    Keymaster

    Hello Tiffany,

    Unfortunately, I don’t think I have much of an answer for you on that one. It isn’t that shortcodes in general won’t work within tabs, but the shortcode you’re using uses javascript to display the gallery and do its thing. The problem is that this javascript isn’t going to work right just with the general fact of the content being included within a hidden element (i.e. everything but the first tab).

    Have you considered putting something more simple for the galleries in the tabs? Maybe just like WordPress default [gallery] shortcode to have a grid of images?

    http://codex.wordpress.org/Gallery_Shortcode

Viewing 1 replies (of 1 total)
  • The forum ‘Barely Corporate Responsive WordPress Theme’ is closed to new topics and replies.