Greg’s Sandbox

Notes on Front-End Web Development

02 Mar modified: 8 years ago

Shortcode Sandbox

grav plugin shortcode Mike Arney | unsplash

Let's try a built-in core shortcode. The following shortcode will add an underline to some text. The third word is underlined. OK, now we are going to try a modified shortcode that I put together.

This one will turn the selected text bold and red. The trigger will be... (can't show you). Your chain…

Continue reading Shortcode Sandbox ...

22 Feb modified: 8 years ago

Shortcode UI Plugin -- Tabs

grav plugin shortcode Peppe Ragusa | unsplash

Shortcodes seem like they have tremendous potential to incorporate "chunks" of html, css, javaScript into a page. An example of this would be the ui-tabs shortcode demonstrated below.

The tabs shortcode is included in the shortcode-ui plugin. This plugin, in turn, is dependent upon shortcode-core plugin.

It is my intention to study the coding that is shipped with these plugins in order to reverse engineer an understanding of how a shortcode can be built. My first attempt will be to convert the figure hack that I have already put together.

Continue reading Shortcode UI Plugin -- Tabs ...