Hub Hack: Display Title and Description Above Flipbook

Follow

Use this Custom Code snippet to display the Item title and description above a Flipbook.


 

Details

  • Type: JavaScript
  • Placement: Item Content (Custom Code tab at Item level)
  • Notes: By default, viewing a Flipbook in a Hub will display the Item's title (and description, if present) below the Flipbook. This JavaScript snippet simply moves those elements above the Flipbook. Note that this snippet must be placed at the Item level (see the note in this article), and will not work at the Hub level.

 

Code

<script>
var flipbook = document.querySelector('.single-uberflip');
var entryWrapper = document.querySelector('.entry-wrapper');
var flipbookParent = flipbook.parentNode;
flipbookParent.parentNode.removeChild(flipbookParent);
entryWrapper.appendChild(flipbookParent);
</script>
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.