I imagine that this would be similar to the issue with dynamically-created galleries mentioned in the FAQ, where the content is rendered with zero height & width if the tab containing the content is not visible on page load.
Which plugin were you using to provide the bandcamp embed shortcode? The most obvious one which came up in a search appears to be long abandoned.
-
This reply was modified 7 years, 3 months ago by cubecolour.
Thanks for the quick response.
The plugin is Jetpack shortcode embeds (recommended by bandcamp)
I don’t use Jetpack so I can’t test the bandcamp shortcodes it provides, however I have experimented with adding standard Bandcamp iframe embeds into a tabgroup.
I can embed the players in tabs, but apart from the player in the first tab, the album image does not appear until the play button is activated, and the track listing is not shown at all, so I can see a problem.
This is not caused by a limitation of putting a shortcode within a shortcode, however as I suspected earlier, I believe this is due the the content being rendered incorrectly if it is not visible on page load – ie the same issue that some image gallery plugins have with tabs. The Bandcamp devs might have a fix for this, however I don’t think it is something that can be corrected in the tab plugin.
Thanks, yes what you describe is exactly what I find.
So I will use my workaround: put the bandcamp embed in the first tab.
EDIT: just found that they don’t work within a spoiler, which confirms what you say if the content is not immediately visible on the page.
-
This reply was modified 7 years, 3 months ago by Mr Lucky.