Div Elements Shortcode

If you’re an advanced WordPress user you’re going to love this shortcode.   It lets you use a shortcode to create spans, divs, h tags or any element in your code.  It’s great for jumplinks and custom css tricks.

A lot of time custom html code will get screwed up switching between visual and text mode.  This solves that issue.

The code looks like this except { } vs [ ] so I can actually show it.

{soc_element tag=”div” class=”my-class” id=”my-id”}Use this code to make custom div or span classes using shortcodes{/soc_element}

The TAG is any element you want to use like

P, SPAN, DIV, SECTION, H1, H2, H3

The CLASS is any CSS class

The ID is any CSS ID or just an idea you can use for Jumplinks

test