Marathia’s Stacks

stacks for the rest of us

stacks for the rest of us

Stacks Image 91039

HTML(5)elements Stack

Wrap content in a HTML(5) element, optionally with attributes

With this stack, you can wrap other stacks in a HTML element and optionally add attributes. If you don’t know what that means: please move along, nothing to see here for you. But if you ever do manual coding on a RapidWeaver page, you’ll understand how useful that can be!

The most common elements (including a simple div and noscript) and attributes are predefined in the stack, but there’s also the option to use your own, making this stack very versatile. The output of your settings is shown in the info pane of the stack, so no need to switch to source view to check what you’ve done!

Below are two examples of the use of the HTML(5)elements Stack:
Lorem ipsum dolor sit amet, sapien platea morbi dolor lacus nunc, nunc ullamcorper. Felis aliquet egestas vitae, nibh ante quis quis dolor sed mauris. Erat lectus sem ut lobortis, adipiscing ligula eleifend, sodales fringilla mattis dui nullam. Ac massa aliquet.

demo #1: most options used (see also fig. 1 and 3)

<script language="JavaScript"> document.write("What an awesome idea!"); </script>

demo #2: content in a <code> element (see also fig. 2 and 4)

You may want to inspect these elements to see what this stack is doing exactly.

Drop any items into the dropzone of this stack, choose the element you want to wrap the content in and optionally set one or more attributes. As you can see in fig. 1, the HTML(5)elements Stack also provides two advanced options:
remove comments: removes the comments at the beginning (<!-- Start of HTML(5)elements stack v1.0.0 -->) and the end (<!-- End of HTML(5)elements stack -->) of this stack
unwrap: this option removes the surrounding divs of the stack
Especially the unwrap option can have big implications on your page. This option is not supported. Don’t use it unless you know what you’re doing!
<noscript> content will only show in Edit mode and in browsers with Javascript disabled.
When the <hidden> is selected, the content of this stack will be hidden (except in Edit mode), but still be published!

Please use this form to report all issues, questions and comments.

This stack requires RapidWeaver (version 7 or higher) and the Stacks plugin by YourHead (version 3.5 or higher).

HTML(5)elements in Edit mode 1

fig. 1: demo #1 in Edit mode

HTML(5)elements in Edit mode 2

fig. 2: demo #2 in Edit mode

Pay what you want
Buy this stack and pay for it what you think is reasonable. In the shopping cart, just change the suggested price to the amount you are willing to pay.

Of course, you are free to set the price to zero resulting in a free download but (especially when you intend to use it in a project) consider the following:
I do my best to deliver professional quality, so I spend a lot of time developing, updating and supporting these stacks.
A little income from my work will motivate me to continue and develop more useful RapidWeaver stuff.
Paying a reasonable price will make you feel better, knowing you’re supporting an indie developer.

Yes, this website uses cookies too. Here’s the annoying but obligatory cookie warning. More info…