Shortcode: [html] – Wrap with html tag
[ html] – Wrap with html tag
The Weaver X Theme Support [ html]
shortcode allows you to add arbitrary HTML to your post and page content. The main purpose of this shortcode is to get around the auto paragraph and line break and other HTML stripping functionality of the WordPress editor.
Shortcode usage:
[ html html-tag args='parameters']
- html-tag – The first parameter to the shortcode must be present, and must be a standard HTML tag –
p
,br
, orspan
, for example. You just supply the tag – no quotation marks, no ‘=’, just the tag. The shortcode provides the < and >. If you need a wrapping HTML tag (e.g.,span
and/span
), use two shortcodes:
[ html span args='style="color:red"']content to make red[ html /span]
- args=’parameters’ – Allows you to specify arbitrary parameters for your HTML tag. See the example above.